how to replace a specific element in pandas dataframe python code example Example: replace column values pandas df['column'] = df['column'].str.replace(',','-') df