pandas del columns code example
Example 1: drop columns pandas
df.drop(columns=['B', 'C'])
Example 2: pandas dataframe delete column
del df['column_name']
Example 3: how to delete a column from a dataframe in python
del df['column']
df.drop(columns=['B', 'C'])
del df['column_name']
del df['column']