Informatics Practices

To get the number of elements in a Series object, …………… attribute may be used.

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

Python Pandas

2 Likes

Answer

size

Reason — The size attribute is used to know the number of elements in the Series object. The syntax is <Series object>.size.

Answered By

1 Like


Related Questions