Renommer le nom de la colonne Pandas DataFrame
df.rename(columns={"old_col1": "new_col1", "old_col2": "new_col2"})
Gifted Gerbil
df.rename(columns={"old_col1": "new_col1", "old_col2": "new_col2"})
df['col1'].map(di) # note: if the dictionary does not exhaustively map all
# entries then non-matched entries are changed to NaNs
df['col1'].map(di).fillna(df['col1'])