While dropping new DataFrame returns. If you want to apply changes to the current DataFrame you have to specify inplace
parameter.
Option 1
Assigning back to df
–
df = df.drop(790)
Option 2
Inplace argument –
df.drop(790, inplace=True)
While dropping new DataFrame returns. If you want to apply changes to the current DataFrame you have to specify inplace
parameter.
Option 1
Assigning back to df
–
df = df.drop(790)
Option 2
Inplace argument –
df.drop(790, inplace=True)