Pandas Tutorial · Pandas Tutorial
Pandas Getting Started
Learn all about Pandas Getting Started in this comprehensive tutorial.
5 min read intermediate
- •If you have Python and PIP already installed on a system, then installation of Pandas is very easy.
- •Once Pandas is installed, import it in your applications by adding the import keyword:
- •Pandas is usually imported under the pd alias.
- •The version string is stored under __version__ attribute.
Installation of Pandas
If you have Python and PIP already installed on a system, then installation of Pandas is very easy.
Install it using this command:
python
If this command fails, then use a python distribution that already has Pandas installed like, Anaconda, Spyder etc.
Import Pandas
Once Pandas is installed, import it in your applications by adding the import keyword:
python
Now Pandas is imported and ready to use.
python
Pandas as pd
Pandas is usually imported under the pd alias.
Note: alias: In Python alias are an alternate name for referring
to the same thing.
Create an alias with the as keyword while importing:
python
Now the Pandas package can be referred to as pd instead of pandas.
python
Checking Pandas Version
The version string is stored under __version__ attribute.
python
Module quiz
Test your knowledge on this module
5 questions