79810957

Date: 2025-11-06 07:46:38
Score: 1.5
Natty:
Report link

just write the right hand side code, you have indicated (inplace=True) so you don't have to reassign it to the data object.

code to use:

\>>> data.drop(['label1','label2'],axis = 1, inplace = True)

\>>> data.head()

Output:

your data frame without lable1 & label 2

otherwise you'll delete your data frame completely and a None object will be assigned to your data frame object.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abdalla Morsi