how to get rid of a column dataframe code example
Example 1: delete columns pandas
df = df.drop(df.columns[[0, 1, 3]], axis=1)
Example 2: how to delete a column from a dataframe in python
del df['column']
df = df.drop(df.columns[[0, 1, 3]], axis=1)
del df['column']