replace in dataframe column code example
Example 1: replace column values pandas
df['column'] = df['column'].str.replace(',','-')
df
Example 2: column.replace
df.column = df.coloumn.replace('old_value', 'new_value')
df['column'] = df['column'].str.replace(',','-')
df
df.column = df.coloumn.replace('old_value', 'new_value')