How to install Pandas in Python

Installing Python pandas on Windows


Check If python is installed on your system, If yes then you should be able to get its version using command prompt:


C:\Users\dipanshuasri>python –version

Python 3.8.2

If not installed then please visit

Python Pandas can be installed on windows in 2 ways:

  1. Using Pip (package manager)
  2. Using Anaconda Navigator

Install Pandas using pip

  1. Go to Windows command prompt and type :

    C:\Users\Dipanshu> pip install pandas

  2. If above command does not work then you need admin access to run or try using below command i.e pip install — user <package-name to be installed>


    C:\Users\Dipanshu> pip install –user pandas

Installation steps using Anaconda Navigator

  1. Press Windows Start menu button and type Anaconda Navigator.
  2. Click on Environments Tab on the left side of the screen and click on create button(+) to create a new Pandas environment.
  3. Enter new environment name e.g MyPandas and select the python version for that and click on the Create button.
  4. After clicking create button you will see an entry “MyPandas” below to base(root). Click on the MyPandas play button to activate the environment.
  5. 5. In the above package names , select “All “ to filter from the available options.

  6. Now in the Search Bar , Type “pandas”. Select the pandas library from list .Click on the Apply button.
  7. Then a pop up will arise to mention the list and number of packages in Pandas bundle. Click on Apply to get them installed.

  8. 7.Now the packages have been installed. Click on the play button against “MyPandas”.Then you will get the list of options to open pandas. In our case we clicked on “Open Terminal”.

  9. 8.After clicking On Terminal you will notice the name “MyPandas” on the terminal. Cheers you did it.

Installing Python pandas on Linux

Pandas is a part of Anaconda’s distribution.

It can be installed on Linux in many ways:

  1. Using pip installer package

  2. Using Pycharm IDE

  3. 3. Using Anaconda

Pre-Requisites :

Make sure that python is installed on your system.

For ex: Open your terminal and enter below command

$ python –version

Python 2.7.15+

Installing Pandas using pip package

It is the most easy way to install pandas package. PIP is a package management tool which is used to install and manage software packages or libraries written in python.They libraries are stored in online repository termed as Python package index i.e PyPI.

Go to Linux Terminal and enter below :

$pip install pandas

This command will install pandas onto your system.

Installing pandas using PyCharm

Pandas can be installed using Pycharm community edition.It is one of the best opensource IDE developed by jetBrains Community. To download please visit this official website link:

After installing Pycharm , Open it.

Then Go to File -> Settings

Search for Python Interpreter.

Then click + symbol on the right side of pop-up. You will get another pop-up. Now enter pandas and click Install package.

Installing pandas using Anaconda distribution

It is the most desired open source tool for Data analysis and machine learning.

First install anaconda on your system if you have not it already :

  1. Go to the official site :

  2. Click on download and choose the python installer for the python version you want to install i.e 2.7.+ or 3.7+ and choose either 32 bit or 64 bit.

  3. Go to the location where you kept it :

    In my case it is present in below download section. But i would suggest you to keep it in /tmp directory or at any custom location.

    $cd /Downloads

  4. Run the script as below:

    Then enter the options which it prompts according to your requirements.

  5. At the end you will see a thanks message. Cheers you are almost done.

  6. Verify Installation

    Close your shell/terminal and open it again from same location.

    You will notice a prefix(base) .

    Or you can try $conda info

  7. Conda by-default contains the pandas lib in Anaconda distribution or packages.

    To verfiy it please type: $ conda list

    You will get the entire list in alphabetical order.


    You may also like:

Related Posts

  • Pandas apply function to column
    12 January

    Pandas apply function to column

    Table of ContentsHow do I apply function to column in pandas?Using dataframe.apply() functionUsing lambda function along with the apply() functionUsing dataframe.transform() functionUsing map() functionUsing NumPy.square() function We make use of the Pandas dataframe to store data in an organized and tabular manner. Sometimes there, is a need to apply a function over a specific column […]

  • Find rows with nan in Pandas
    11 January

    Find rows with nan in Pandas

    Table of ContentsWhat is nan values in Pandas?Find rows with NAN in pandasFind columns with nan in pandasFind rows with nan in Pandas using isna and iloc() In this post, we will see how to find rows with nan in Pandas. What is nan values in Pandas? A pandas DataFrame can contain a large number […]

  • 05 October

    Pandas replace values in column

    Table of ContentsUsing the loc() function to replace values in column of pandas DataFrameUsing the iloc() function to to replace values in column of pandas DataFrameUsing the map() function to replace values of a column in a pandas DataFrameUsing the replace() function to replace values in column of pandas DataFrameUsing the where() function to replace […]

  • Select rows by multiple conditions using loc in Pandas
    29 July

    Pandas Loc Multiple Conditions

    💡 Outline Here is the code to select rows by pandas Loc multiple conditions. [crayon-6272feb0121f3288801241/] Here, we are select rows of DataFrame where age is greater than 18 and name is equal to Jay. [crayon-6272feb0121f9434303513/] The loc() function in a pandas module is used to access values from a DataFrame based on some labels. It […]

  • Split dataframe in Pandas
    28 July

    Split dataframe in Pandas

    Table of ContentsUsing the iloc() function to split DataFrame in PythonBy RowsBy ColumnsUsing the sample() function to split DataFrame in PythonUsing the groupby() function to split DataFrame in PythonUsing the columns to split DataFrame in Python In real-life scenarios, we deal with massive datasets with many rows and columns. At times, we may want to […]

  • Read text file in Pandas
    28 July

    Read text file in Pandas

    Table of ContentsUsing the read_csv() function to read text files in PandasUsing the read_table() function to read text files in PandasUsing the read_fwf() function to read text files in Pandas A dataset has the data neatly arranged in rows and columns. The pandas module in Python allows us to load DataFrames from external files and […]

Leave a Reply

Your email address will not be published.

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.