CBSE Class 12 Informatics Practices Question 39 of 167

Python Pandas — I — Question 4

Back to all questions
4
Question

Question 4

To get the number of dimensions of a Series object, ............... attribute is displayed.

  1. index
  2. size
  3. itemsize
  4. ndim
Answer

ndim

Reason — The ndim attribute is used to get the number of dimensions (axis) of a Series object. The syntax is <Series object>.ndim.