how to replace a string in a column in python code example
Example 1: replace column values pandas
df['column'] = df['column'].str.replace(',','-')
df
Example 2: python replace variable in string
plot.savefig(f'hanning{num}.pdf') # added in Python 3.6