how to remove roein dataframe pandas code example
Example 1: drop column dataframe
df.drop(columns=['Unnamed: 0'])
Example 2: drop variable pandas
# pandas drop a column with drop function
gapminder_ocean.drop(['pop'], axis=1)
df.drop(columns=['Unnamed: 0'])
# pandas drop a column with drop function
gapminder_ocean.drop(['pop'], axis=1)