S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which method is used to drop a level from a MultiIndex in pandas?

  • (A) unstack()
  • (B) stack()
  • (C) droplevel()
  • (D) remove_level()
  • Correct Answer - Option(C)
  • Views: 21
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
The droplevel() method removes a specified level from a MultiIndex.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics