Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use .items instead of .iteritems to suppress deprecation warning from pandas v1.5.0 or newer #27

Closed
wants to merge 1 commit into from
Closed

Use .items instead of .iteritems to suppress deprecation warning from pandas v1.5.0 or newer #27

wants to merge 1 commit into from

Conversation

tmaklin
Copy link
Contributor

@tmaklin tmaklin commented Oct 20, 2022

Running gunc v1.0.5 with pandas v1.5.0 or newer produces the error:

get_scores.py:114: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.

This is because .iteritems was deprecated in pandas v1.5.0 to mirror python3's dictionary api deprecating the same function (see the release notes or the discussion about the deprecation).

This pull request fixes the warning by replacing the usage of .iteritems with .items. The change is also compatible with older versions of pandas since .iteritems calls .items internally, meaning there is no difference between the two.

Thanks for creating gunc!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant