pandas drop one column by index code example
Example 1: drop variable pandas
# pandas drop a column with drop function
gapminder_ocean.drop(['pop'], axis=1)
Example 2: drop the first column pandas
df.set_index['column'] # column refers to column to be set as index