why i can't downgrade pandas1.5.3?

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.

Upvotes: -2

Views: 209

Answers (1)

Talha Tayyab
Talha Tayyab

Reputation: 27385

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

Upvotes: 0

Related Questions