Informatics Practices

Assertion. DataFrame has both a row and column index.

Reason. A DataFrame is a two-dimensional labelled data structure like a table of MySQL.

  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 DataFrame in Pandas has both a row index and a column index. It is a two-dimensional labeled data structure, similar to a table in MySQL, each value is identifiable with the combination of row and column indices.

Answered By

1 Like


Related Questions