S

Sikhar Chaudhary • 5.88K Points
Tutor III

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

Explanation by: Sikhar Chaudhary
The index attribute returns the row labels of a DataFrame.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics