replace string in column if string pandas code example
Example 1: find and replace string dataframe
df['range'] = df['range'].str.replace(',','-')
Example 2: pandas replace string with another string
df['prod_type'] = df['prod_type'].replace({'respon':'responsive', 'r':'responsive'})