pandas drop first column by index code example
Example 1: remove column from dataframe
df.drop('column_name', axis=1, inplace=True)
Example 2: drop the first column pandas
df.set_index['column'] # column refers to column to be set as index
df.drop('column_name', axis=1, inplace=True)
df.set_index['column'] # column refers to column to be set as index