pandas find all columns where any cells contain certain character code example Example: column contains substring python df2 = df.filter(regex='spike') print(df2)