CBSE Class 12 Informatics Practices Question 2 of 44

Data Handling using Pandas — Question 3

Back to all questions
3
Question

Question 3

Assertion (A): Dataframe has both a row and column index.

Reasoning (R): 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.
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.