KnowledgeBoat Logo
|

Informatics Practices

Assertion. A series is a 1D data structure which is value-mutable but size-immutable.

Reason. Every time you change the size of a series object, change does not take place in the existing series object, rather a new series object is created with the new size.

  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.

Python Pandas

1 Like

Answer

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

Explanation
A series is a one-dimensional data structure that is value-mutable but size-immutable. This means that we can modify the values within a series, but we cannot change its size once it's created. Every time we attempt to change the size of a series object by adding or dropping an element, internally a new series object is created with the new size.

Answered By

2 Likes


Related Questions