replace value ffrom other column python code example
Example 1: replace values of pandas column
df.loc[df['column'] == 'column_value', 'column'] = 'new_column_value'
Example 2: replace one row with another in python
df.loc[(df.Event == 'Dance'),'Event']='Hip-Hop'
df