close

How to downgrade Pandas Version

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to downgrade Pandas Version in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to downgrade Pandas Version?

  1. How to downgrade Pandas Version?

    Assuming pandas was installed with pip, you can simply redo the install with the desired version. If it was installed by some other method, the below may not work.

  2. downgrade Pandas Version

    Assuming pandas was installed with pip, you can simply redo the install with the desired version. If it was installed by some other method, the below may not work.

Method 1

Assuming pandas was installed with pip, you can simply redo the install with the desired version. If it was installed by some other method, the below may not work.

In a command terminal:

pip install pandas==0.19.2

In the output, you should see mention of the previous version being uninstalled.

Method 2

There’s an incompatibility version between pandas and your blaze package. It also does not have a fixed version, so the incompatibility can appear any time.

You can downgrade two packages at once:

conda install pandas==0.25 python==3.7

I’d uninstall blaze, downgrade pandas and try to reinstall blaze again.

It is always a good practice to fix your package versions and commit them to your version control. Use this command:

conda env export -f environment.yml

It will save every version of your pandas and pip packages. Add it to your version control.

BTW, I prefer to export using the option –from-history. It will export just the libs you explicitly installed, and not the dependencies:

conda env export --from-history > environment.yml

It will prevent a lot of troubles.

Note: for --from-history to work fine, you must have fixed your package version when installing packages: conda install pandas==0.25.

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read