how to drop a column from a dataframe in pandas code example
Example 1: how to delete a column from a dataframe in python
del df['column']
Example 2: drop variable pandas
# pandas drop a column with drop function
gapminder_ocean.drop(['pop'], axis=1)