A

Admin • 833.24K Points
Coach

Q. What does `df.loc[0]` return?

  • (A) First column
  • (B) Row with label 0
  • (C) Third row
  • (D) Column with label 0
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin

`loc[0]` accesses a row by label (not necessarily position).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.