replace all string of a dataframe in python code example Example: find and replace string dataframe df['range'] = df['range'].str.replace(',','-')