I want to replace all strings that contain a specific substring. So for example if I have this dataframe:
import pandas as pd df = pd.DataFrame({\'name\': [\
A different str.contains
str.contains
df['support'][df.name.str.contains('ball')] = 'ball support'