CBSE Class 12 Informatics Practices Question 10 of 18

Practice Paper — Question 18

Back to all questions
18
Question

Question 18

Assertion (A). To use the Pandas library in a Python program, one must import it.

Reasoning (R). The only alias name that can be used with the Pandas library is pd.

  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

A is true but R is false.

Explanation
In order to work with Pandas in Python, we need to import the Pandas library into our Python environment using the statement import pandas as pd. While pd is a common alias used with the Pandas library, it's not the only alias that can be used. We can import Pandas using other alias names as well.

Get the Bright Tutorials app Stuck on a question? Ask Bright Buddy — your AI tutor — for step-by-step help in the app.