A

Admin • 802.91K Points
Coach

Q. What is the output of `df.iloc[2]`?

  • (A) Column at index 2
  • (B) Row at label 2
  • (C) Row at index 2
  • (D) All rows starting from index 2
  • Correct Answer - Option(C)
  • Views: 3
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`iloc[2]` returns the third row (index-based selection).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.