A

Admin • 828.03K Points
Coach

Q. How to get the number of rows and columns in a DataFrame?

  • (A) df.length
  • (B) df.shape
  • (C) df.size
  • (D) df.rows_columns()
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`df.shape` returns a tuple with number of rows and columns.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.