By far the simplest approach is:
yourdf.drop(['columnheading1', 'columnheading2'], axis=1, inplace=True)
More Related Contents:
- Pandas conditional creation of a series/dataframe column
- Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
- How to unnest (explode) a column in a pandas DataFrame, into multiple rows
- Get the row(s) which have the max value in groups using groupby
- Error: pandas hashtable keyerror
- Writing a pandas DataFrame to CSV file
- Remove unwanted parts from strings in a column
- How to filter rows containing a string pattern from a Pandas dataframe [duplicate]
- Pandas Timedelta in Days
- Why does my Pandas DataFrame not display new order using `sort_values`?
- python/pandas: convert month int to month name
- How to check if a column exists in Pandas
- How can I remove all non-numeric characters from all the values in a particular column in pandas dataframe?
- Pandas Merge – How to avoid duplicating columns
- pandas read_csv and filter columns with usecols
- import text to pandas with multiple delimiters
- Scatter plot form dataframe with index on x-axis
- Converting a column within pandas dataframe from int to string
- How to plot stacked event duration (Gantt Charts)
- Print very long string completely in pandas dataframe
- How to show a bar and line graph on the same plot
- pandas comparison raises TypeError: cannot compare a dtyped [float64] array with a scalar of type [bool]
- How do I filter a pandas DataFrame based on value counts?
- Pandas query function not working with spaces in column names
- better way to drop nan rows in pandas
- How do I create a sum row and sum column in pandas?
- Python pandas cumsum() reset after hitting max
- Remove NaN values from pandas dataframe and reshape table [duplicate]
- Load CSV to Pandas MultiIndex DataFrame
- bash: Python import – Command not found for pandas