pandas replace string in a column code example
Example: pandas replace word begins with contains
df.sport = df.sport.apply(lambda x: 'ball sport' if 'ball' in x else x)
df.sport = df.sport.apply(lambda x: 'ball sport' if 'ball' in x else x)