DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
remove specific character from object in pandas column using iloc
df['filename'] = df['filename'].map(lambda x: str(x)[:-4])
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#specific
#character
#object
#pandas
#column
#iloc
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit