A

Admin • 828.03K Points
Coach

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

  • (A) df.set_index()
  • (B) df.index_reset()
  • (C) df.reset_index()
  • (D) df.restart_index()
  • Correct Answer - Option(C)
  • Views: 5
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`reset_index()` resets the index of the DataFrame to the default integer index.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.