DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
rename multiple value in column in pandas
df['column name'] = df['column name'].replace(['1st old value','2nd old value',...],'new value')
Source by datatofish.com #
PREVIOUS
NEXT
Tagged:
#rename
#multiple
#column
#pandas
ADD COMMENT
Topic
COMMENT
Name
9+4 =
Submit