pandas drop columns by index

df.drop(a_dataframe.columns[0], axis=1, inplace=True)

Here is what the above code is Doing:
1. We’re creating a new dataframe called ‘a_dataframe’ that contains the data from the ‘a_dataframe.csv’ file.
2. We’re dropping the first column of the dataframe.
3. We’re setting the ‘inplace’ parameter to True, which means that we’re modifying the dataframe in place.