pandas replace string in column by dict value code example
Example: replace values of pandas column
df.loc[df['column'] == 'column_value', 'column'] = 'new_column_value'
df.loc[df['column'] == 'column_value', 'column'] = 'new_column_value'