delete column python access code example
Example 1: how to delete a column from a dataframe in python
del df['column']
Example 2: remove a column from dataframe
del df['column_name'] #to remove a column from dataframe
del df['column']
del df['column_name'] #to remove a column from dataframe