replace column values pandas

df['column'] = df['column'].str.replace(',','-')

Here is what the above code is Doing:
1. We’re using the str.replace() method to replace all commas with dashes.
2. We’re assigning the result to the same column.
3. We’re using the inplace parameter to make the changes in the same DataFrame.