if name is in column python code example Example: get columns containing string df2 = df.filter(regex='spike') print(df2)