Skip to content

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.

1 participant