S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which method is used to get the first n rows of a DataFrame?

  • (A) head()
  • (B) tail()
  • (C) first()
  • (D) sample()
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category Pandas

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics