By far the simplest approach is:
yourdf.drop(['columnheading1', 'columnheading2'], axis=1, inplace=True)
More Related Contents:
- how to calculation cost time [closed]
- Pandas: Adding new column to dataframe which is a copy of the index column
- pandas: filter rows of DataFrame with operator chaining
- Pandas groupby: How to get a union of strings
- How do I create test and train samples from one dataframe with pandas?
- pandas groupby sort within groups
- Applying function with multiple arguments to create a new pandas column
- How do convert a pandas dataframe to XML?
- Python Pandas max value in a group as a new column
- Count frequency of values in pandas DataFrame column
- append dataframe to excel with pandas
- Strip / trim all strings of a dataframe
- How to dynamically update a plot in a loop in IPython notebook (within one cell)
- How to iterate over consecutive chunks of Pandas dataframe efficiently
- How to flatten multilevel/nested JSON?
- Why can pandas DataFrames change each other?
- Precision lost while using read_csv in pandas
- Copying MultiIndex dataframes with pd.read_clipboard?
- Joining pandas DataFrames by Column names
- Get list of pandas dataframe columns based on data type
- pandas.read_csv: how to skip comment lines
- “Anti-merge” in pandas (Python)
- Writing to a file on SFTP server opened using Paramiko/pysftp “open” method is slow
- Pandas groupby with categories with redundant nan
- Datetime conversion – How to extract the inferred format?
- Python numpy: cannot convert datetime64[ns] to datetime64[D] (to use with Numba)
- Slicing multiple ranges of columns in Pandas, by list of names
- Can you format pandas integers for display, like `pd.options.display.float_format` for floats?
- computing the mean for python datetime
- Pandas explode multiple columns [duplicate]