pandas drop a column by name code example
Example 1: df drop column
df = df.drop(['B', 'C'], axis=1)
Example 2: drop the first column pandas
df.set_index['column'] # column refers to column to be set as index
df = df.drop(['B', 'C'], axis=1)
df.set_index['column'] # column refers to column to be set as index