change column value based on it;s value pandas code example Example: replace column values pandas df['column'] = df['column'].str.replace(',','-') df