change all strings in pandas code example
Example 1: replacing values in pandas dataframe
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
Example 2: pandas replace word begins with contains
df.sport = df.sport.apply(lambda x: 'ball sport' if 'ball' in x else x)