0
0
Pandasdata~10 mins

Installing Pandas - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install the pandas library using pip.

Pandas
pip install [1]
Drag options to blanks, or click blank then click option'
Amatplotlib
Bnumpy
Cpandas
Dscipy
Attempts:
3 left
💡 Hint
Common Mistakes
Typing a different library name like numpy or matplotlib.
Forgetting to use pip before install.
2fill in blank
medium

Complete the code to import pandas with the common alias.

Pandas
import [1] as pd
Drag options to blanks, or click blank then click option'
Anumpy
Bmatplotlib
Cscipy
Dpandas
Attempts:
3 left
💡 Hint
Common Mistakes
Importing the wrong library.
Not using the alias or using a different alias.
3fill in blank
hard

Fix the error in the command to upgrade pandas using pip.

Pandas
pip install --[1] pandas
Drag options to blanks, or click blank then click option'
Ainstall
Bupgrade
Cupdate
Dupgrade-package
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' instead of 'upgrade'.
Forgetting the double dashes before the option.
4fill in blank
hard

Fill both blanks to check the installed pandas version in Python.

Pandas
import pandas as [1]
print(pd.[2])
Drag options to blanks, or click blank then click option'
Apd
Bversion
C__version__
Dver
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'version' or 'ver' instead of '__version__'.
Using a different alias than 'pd'.
5fill in blank
hard

Fill all three blanks to create a DataFrame after installing pandas.

Pandas
import [1] as pd

data = {'Name': ['Alice', 'Bob'], 'Age': [25, 30]}

df = pd.[2]([3])
print(df)
Drag options to blanks, or click blank then click option'
Apandas
BDataFrame
Cdata
DSeries
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Series' instead of 'DataFrame'.
Passing wrong variable name to the constructor.