S

Sikhar Chaudhary • 5.88K Points
Tutor III

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: 36
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
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.


Question analytics