S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which method is used to set a column as the index of a DataFrame?

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

Explanation by: Sikhar Chaudhary
set_index() sets one or more columns as the index of the DataFrame.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics