Pandas iteritems deprecation warnings
jerheff opened this issue · 1 comments
jerheff commented
Expected Behavior
No noisy warnings from running pipelines containing these transformers.
Actual Behavior
Frequent warnings due to Pandas 1.5 deprecation:
category_encoders/one_hot.py:145: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.
Steps to Reproduce the Problem
- Install pandas 1.5.1 and category_encoders 2.5.1
- Use the OneHotEncoder in a pipeline
- See the warnings on fit
Specifications
- Version: 2.5.1
- Platform: macOS
- Subsystem:
glevv commented
That's because iteritems
method is in deprecation cycle. I think PolynomialWrapper
also uses it.
Should be an easy and quick fix