Remplacement des valeurs dans Pandas DataFrame
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
JAKKA9
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
df.loc[df['column'] == 'column_value', 'column'] = 'new_column_value'
df["column1"].replace({"a": "x", "b": "y"}, inplace=True)
energy['Country'] = energy['Country'].replace(['Afghanistan','Albania'],['Sa','lol'])