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