A

Admin • 802.91K Points
Coach

Q. What does the `head()` method do in pandas?

  • (A) Deletes rows
  • (B) Displays the last 5 rows
  • (C) Displays the first 5 rows
  • (D) Sorts the data
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`head()` returns the first 5 rows by default.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.