pandas pydata .drop() code example
Example 1: drop columns pandas
df.drop(columns=['B', 'C'])
Example 2: drop variable pandas
# pandas drop a column with drop function
gapminder_ocean.drop(['pop'], axis=1)
df.drop(columns=['B', 'C'])
# pandas drop a column with drop function
gapminder_ocean.drop(['pop'], axis=1)