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

  • (A) columns
  • (B) index
  • (C) keys()
  • (D) labels()
πŸ’¬ Discuss
βœ… Correct Answer: (B) index
Explanation: The index attribute returns the row labels of a DataFrame.
Explanation by: Sikhar Chaudhary
The index attribute returns the row labels of a DataFrame.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
94
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
93%
Success Rate