Substituindo valores no quadro de dados de pandas
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
JAKKA9
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
df["column1"].replace({"a": "x", "b": "y"}, inplace=True)
df.column = df.coloumn.replace('old_value', 'new_value')