S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which method is used to reset the index of a DataFrame?

  • (A) reset_index()
  • (B) set_index()
  • (C) reindex()
  • (D) drop_index()
  • Correct Answer - Option(A)
  • Views: 25
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
reset_index() resets the index of a DataFrame, converting the current index into a column.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics