how to check if a column contains a string in python code example Example: column contains substring python df2 = df.filter(regex='spike') print(df2)