Here is one way to do this:
df = df[df.columns.drop(list(df.filter(regex='Test')))]
More Related Contents:
- error when applying function to a series object
- How to deal with SettingWithCopyWarning in Pandas
- Groupby value counts on the dataframe pandas
- Using Pandas to pd.read_excel() for multiple worksheets of the same workbook
- How to add pandas data to an existing csv file?
- How to explode a list inside a Dataframe cell into separate rows
- How to print pandas DataFrame without index
- Reversing ‘one-hot’ encoding in Pandas
- Pandas split column into multiple columns by comma
- Repeat rows in a pandas DataFrame based on column value
- Accessing every 1st element of Pandas DataFrame column containing lists
- Python – How to convert JSON File to Dataframe
- How to remove timezone from a Timestamp column in a pandas dataframe
- Pandas lookup from one of multiple columns, based on value
- Lookup Values by Corresponding Column Header in Pandas 1.2.0 or newer
- How to spread a column in a Pandas data frame
- How to add a suffix (or prefix) to each column name?
- How to delete multiple pandas (python) dataframes from memory to save RAM?
- Python Pandas: Boolean indexing on multiple columns [duplicate]
- How can I use cumsum within a group in Pandas?
- Why does df.apply(tuple) work but not df.apply(list)?
- Merge a list of pandas dataframes
- Checking if particular value (in cell) is NaN in pandas DataFrame not working using ix or iloc
- Updating a value in a pandas dataframe in an iterrows loop
- How to repeat a Pandas DataFrame?
- Get column name where value is something in pandas dataframe
- Pandas groupby and aggregation output should include all the original columns (including the ones not aggregated on)
- How to convert string representation of dictionary in Pandas DataFrame to a new columns?
- Selecting a range of columns in a dataframe
- Pandas explode multiple columns [duplicate]