pandas dataframe select columns that contain word x in the name code example Example: get columns containing string df2 = df.filter(regex='spike') print(df2)