How to Change the Pandas Version in Windows

You can change the Pandas version in Windows using this command:

pip install pandas==type here the pandas version needed

For example, if the Pandas version needed is 0.23.4, then open the Windows Command Prompt and type/copy the command below. Note that the following method would only work if you already added Python to Windows path. Don’t worry if you don’t know what it means, as I’ll show the full steps to change the Pandas version in the next section.

pip install pandas==0.23.4

Steps to Change the Pandas Version in Windows

(1) To start, open the Windows Command Prompt:

Command Prompt

(2) Type “cd\” to ensure that your starting point has only the drive name:

Command Prompt

(3) Press Enter, and you’ll see the drive name C:\>

C Drive

(4) Locate the Python “Scripts” path, which should be within the folder you originally installed Python.

In my case, the Python Scripts path is:

C:\Users\Ron\AppData\Local\Programs\Python\Python37-32\Scripts

How to Change the Pandas Version in Windows

(5) Type “cd” followed by your Python Scripts path:

How to Change the Pandas Version in Windows

(6) Press Enter, and you’ll see the following:

Change the Pandas Version in Windows

(7) To change the Pandas version to 0.23.4 for example, you may type the command below and then press Enter:

pip install pandas==0.23.4

This is how the command would look like in the Command Prompt:

How to Change the Pandas Version in Windows

(8) Once the installation is completed, you’ll see the version of Pandas that you specified:

How to Change the Pandas Version in Windows

Optionally, you could also check the version of Pandas at anytime by opening Python and then typing this syntax:

import pandas as pd
print(pd.__version__)

This is how the syntax would look like in Python:

Syntax in Python

Run the code, and you’ll see the version of Pandas:

pandas version