Thuta Learning
BasicData & Databasesintermediate

Installation

Relax. We'll talk through this in plain words — no textbook voice.

What to know before installing

To use Pandas, you need to have Python installed. The easiest way for beginners is to use Google Colab. Since Colab already comes with Pandas, you can run code right in your browser. If you want to work on your local computer, run pip install pandas in your terminal/command prompt.

python
# Install pandas using pip in your terminal
pip install pandas

# After installation, import pandas in Python
import pandas as pd
print(pd.__version__)

pip install pandas installs the Pandas package. import pandas as pd brings Pandas into your Python file so you can use it. pd is the short name for Pandas, and it's the convention most commonly used in the community.

You should see
2.x.x Your version number may be different depending on your environment.

Info

If the command doesn't work on your local machine, it might be because your Python/Pip path isn't set up correctly. In that case, it's easier to try Colab first and get the concepts down before troubleshooting your local setup.