pandas rename column values dictionary

Solutions on MaxInterview for pandas rename column values dictionary by the best coders in the world

showing results for - "pandas rename column values dictionary"
Tom
19 Mar 2019
1df['col1'].map(di)       # note: if the dictionary does not exhaustively map all
2                         # entries then non-matched entries are changed to NaNs
3
Amya
26 Oct 2016
1df['col1'].map(di).fillna(df['col1'])
2