Pandas – Installation Guide
Python Pandas module can be directly downloaded and installed using pip command. The module is listed in Python.org Issue the following command at the command prompt. It must be kept in mind that it is pandas not panda.
Pandas Installation using pip command
rakesh@DESKTOP-1PBLCJ5 MINGW64 ~ $ pip install pandas Requirement already satisfied: pandas in c:\python37\lib\site-packages (1.0.5) Requirement already satisfied: pytz>=2017.2 in c:\python37\lib\site-packages (from pandas) (2019.3) Requirement already satisfied: numpy>=1.13.3 in c:\python37\lib\site-packages (from pandas) (1.19.3) Requirement already satisfied: python-dateutil>=2.6.1 in c:\python37\lib\site-packages (from pandas) (2.8.1) Requirement already satisfied: six>=1.5 in c:\users\rakesh\appdata\roaming\python\python37\site-packages (from python-dateutil>=2.6.1->pandas) (1.13.0) WARNING: You are using pip version 20.2.4; however, version 20.3 is available. You should consider upgrading via the 'c:\python37\python.exe -m pip install --upgrade pip' command.
Since, It is already installed in our system, we have this type of output, otherwise, it will produce the following output
$ pip install pandas Collecting pandas Downloading pandas-1.1.4-cp37-cp37m-win_amd64.whl (8.7 MB) |████████████████████████████████| 8.7 MB 2.2 MB/s Requirement already satisfied: numpy>=1.15.4 in c:\python37\lib\site-packages (from pandas) (1.19.3) Requirement already satisfied: pytz>=2017.2 in c:\python37\lib\site-packages (from pandas) (2019.3) Requirement already satisfied: python-dateutil>=2.7.3 in c:\python37\lib\site-packages (from pandas) (2.8.1) Requirement already satisfied: six>=1.5 in c:\users\rakesh\appdata\roaming\python\python37\site-packages (from python-dateutil>=2.7.3->pandas) (1.13.0) Installing collected packages: pandas Successfully installed pandas-1.1.4
Since Pandas is based on so many other python modules, it is bound to install other dependent modules like NumPy.
How to check pandas installation
import pandas module at Python shell.
import pandas as pd df = pd.DataFrame() print(df)
if the above command does not give any error message and produce the following output.
Empty DataFrame Columns: [] Index: []
It means the Python Pandas module is installed properly on your system and ready to rock.
Install Pandas on Linux System
use pip3 command instead of pip command at your terminal window.
pip3 install pandas
Rest will remain same.