Informatics Practices

Assertion (A): In Series, values of data are Immutable: Value of elements cannot be changed.

Reasoning (R): Pandas Series are homogeneous one-dimensional objects, i.e., all data are of the same type.

  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

A is false but R is true.

Explanation
In a Pandas Series, the values of data are mutable, meaning they can be changed. A Pandas Series is a one-dimensional structure with elements of homogeneous data types, which can include integers, strings, floats, or Python objects etc.

Answered By

2 Likes


Related Questions