DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas rename column values dictionary
df['col1'].map(di).fillna(df['col1'])
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#pandas
#rename
#column
#values
#dictionary
ADD COMMENT
Topic
COMMENT
Name
1+7 =
Submit