pandas replace part of string with another value in column code example
Example 1: replace column values pandas
df['column'] = df['column'].str.replace(',','-')
df
Example 2: replace 3 column with another column pandas
df['B'] = df1['E']
df['column'] = df['column'].str.replace(',','-')
df
df['B'] = df1['E']