python variable.drop code example Example: drop variable pandas # pandas drop a column with drop function gapminder_ocean.drop(['pop'], axis=1)