Skip to main contentSkip to solution

Which of the following command is used to install Pandas from command line?

Solution

✅ Correct Option: 2

The command is pip install pandas. pip is Python's package installer, and the package on PyPI is named exactly pandas.


Option 1: the alias pd belongs to the Python import statement import pandas as pd, not to the install command.

Option 3: panda (singular) is a different package, not the data analysis library.

Option 4: pandaslib is not the name of the Pandas package.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question