why i can't downgrade pandas1.5.3?

60 Views Asked by At

I had already upgrade my pandas to version=2.2.0. I need to downgrade my pandas for .iteritems. When I downgrade with following code:

pip install pandas==1.5.3

It's showing me below error:

Failed to build pandas
ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects

reference - ERROR IMAGE

Can anyone help me to avoid this error.

1

There are 1 best solutions below

0
Talha Tayyab On

You don't need to downgrade your pandas.

You can add these lines on top of your code with pandas 2.2.0:

import pandas as pd
pd.DataFrame.iteritems = pd.DataFrame.items