Q. Find the error in the following code? Suggest the solution.


>>> topDf

      Rollno  Name  Marks

Sec A  115  Pavni  97.5

Sec B  236  Rishi    98.0

Sec C  307  Preet  98.5

Sec D  422  Paula  98.0

>>> topDf.del['Sec D']


Answer =

This code line cause Error topDf.del[‘Sec D’]

Correction:-

topDf.drop('Sec D')

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post