CBSE Class 12 Informatics Practices Question 5 of 167

Python Pandas — I — Question 5

Back to all questions
5
Question

Question 5

Assertion. A series object stores values of homogeneous types.

Reason. Even if values appear to be of different types, internally they are stored in a common datatype.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.
Answer

Both A and R are true and R is the correct explanation of A.

Explanation
A Series object in Pandas stores values of homogeneous types, meaning all values are of the same data type. Even if values appear to be of different types, internally they are stored in a common datatype.