rename value if string found python code example
Example: pandas replace word begins with contains
df['sport'] = df.sport.str.replace(r'(^.*ball.*$)', 'ball sport')
df
df['sport'] = df.sport.str.replace(r'(^.*ball.*$)', 'ball sport')
df