S

Shyam Dubey • 3.70K Points
Extraordinary

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: 5
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
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.

Be the first to start discuss.