Home > Mobile >  Force notebook to not display dataframe when changing it
Force notebook to not display dataframe when changing it

Time:11-18

I am creating a Jupyter notebook that i want to be more readable. When changing the dataframes, they are automatically displayed in the notebook. For instance:

df.drop(['street','address','district'], axis = 1)

Displays the whole dataframe after the change. Is it possible to avoid this?

CodePudding user response:

The syntax you used is "Calling" the DataFrame. Instead, you should assign the value, try something like:

df = df.drop(['street','address','district'], axis = 1)
  • Related