S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which function is used to get the index of a DataFrame?

  • (A) columns
  • (B) index
  • (C) keys()
  • (D) labels()
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
The index attribute returns the row labels of a DataFrame.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.