CBSE Class 12 Informatics Practices Question 36 of 167

Python Pandas — I — Question 1

Back to all questions
1
Question

Question 1

Which of the following statement will import pandas library ?

  1. Import pandas as pd
  2. import Pandas as py
  3. import pandas as pd
  4. import panda as pd
Answer

import pandas as pd

Reason — The syntax to import a library with an alias is import library_name as alias. Therefore, the statement import pandas as pd is used to import the pandas library in Python with the alias 'pd'.