S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to get the shape of a DataFrame?

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

Explanation by: Shyam Dubey
The shape attribute returns a tuple representing the number of rows and columns in a DataFrame.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.