S

Shyam Dubey • 3.70K Points
Extraordinary

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

Explanation by: Shyam Dubey
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.

Be the first to start discuss.