CBSE Class 12 Informatics Practices Question 41 of 167

Python Pandas — I — Question 6

Back to all questions
6
Question

Question 6

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

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

size

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