How to Update Pandas in Anaconda

Fariba Laiq Feb 02, 2024
  1. Check the Current Pandas Version
  2. Use Anaconda Interface to Update Pandas in Conda
  3. Use the conda Command to Update Pandas in Conda
  4. Use the pip Command to Update Pandas
How to Update Pandas in Anaconda

Pandas is a Python data analysis library. Pandas is built on top of two fundamental Python libraries: NumPy for mathematical operations and Matplotlib for data visualization.

By serving as a wrapper for these libraries, Pandas makes it easier to access many of Matplotlib’s and NumPy’s functions. The library is not included with a standard Python installation.

You must install the Pandas framework independently to utilize it.

Check the Current Pandas Version

You may want to check the current version of Pandas before updating it. To check the current version, you can open Anaconda.

Click on Environments then from the top right, you can search for the Pandas package, and from there, you can see the current version, which is 1.4.2 in this case.

check current version

Use Anaconda Interface to Update Pandas in Conda

In the above image, you will see Update available if you hover over the blue arrow. To update the Pandas package, click on it, and it will update automatically.

Use the conda Command to Update Pandas in Conda

To update Pandas to the latest version, you can use the following command in the Condas prompt.

conda update pandas

To update Pandas to a specific version using Conda, use the following command.

conda install pandas=1.3.2

Use the pip Command to Update Pandas

To update Pandas to the latest version using pip, use the following command.

pip install --upgrade pandas

To update Pandas to a specific version using pip, use the following command.

pip install pandas==1.3.2
Author: Fariba Laiq
Fariba Laiq avatar Fariba Laiq avatar

I am Fariba Laiq from Pakistan. An android app developer, technical content writer, and coding instructor. Writing has always been one of my passions. I love to learn, implement and convey my knowledge to others.

LinkedIn