KnowledgeBoat Logo
|

Informatics Practices

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

Python Pandas

3 Likes

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'.

Answered By

3 Likes


Related Questions