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