CBSE Class 12 Informatics Practices Question 62 of 167

Python Pandas — I — Question 27

Back to all questions
27
Question

Question 27

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

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

size

Reason — The size attribute will return an integer representing the number of elements in a DataFrame object.