Informatics Practices

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

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

Python Pandas

2 Likes

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.

Answered By

1 Like


Related Questions