CBSE Class 12 Informatics Practices Question 64 of 167

Python Pandas — I — Question 29

Back to all questions
29
Question

Question 29

To get a number representing number of axes in a dataframe, ............... attribute may be used.

  1. size
  2. shape
  3. values
  4. ndim
Answer

ndim

Reason — The ndim attribute will return an integer representing the number of axes/array dimensions.