πŸ“Š Pandas
Q. Which method is used to get the first n rows of a DataFrame?
  • (A) head()
  • (B) tail()
  • (C) first()
  • (D) sample()
πŸ’¬ Discuss
βœ… Correct Answer: (A) head()

Explanation: The head(n) method returns the first n rows of a DataFrame.

Explanation by: Sikhar Chaudhary
The head(n) method returns the first n rows of a DataFrame.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
35
Total Visits
πŸ“½οΈ
5 mo ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
97%
Success Rate