Drop columns whose name contains a specific string from pandas DataFrame November 27, 2022 by Tarik Here is one way to do this: df = df[df.columns.drop(list(df.filter(regex='Test')))]