A

Admin • 833.24K Points
Coach

Q. Which method returns the number of dimensions in a DataFrame?

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

Explanation by: Admin

`ndim` returns the number of dimensions (2 for DataFrame).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.