scikit-learn-contrib / category_encoders

A library of sklearn compatible categorical variable encoders
http://contrib.scikit-learn.org/category_encoders/
BSD 3-Clause "New" or "Revised" License
2.39k stars 393 forks source link

Fix is_categorical_dtype deprecation #419

Closed felunka closed 10 months ago

felunka commented 10 months ago

Fixes deprecation warning for pandas "is_categorical_dtype": category_encoders/utils.py:50: FutureWarning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, CategoricalDtype) instead

Check: https://github.com/pandas-dev/pandas/pull/33385

Replacing instances with the recommended alternative to use "isinstance"

felunka commented 10 months ago

Fixes #418

PaulWestenthanner commented 10 months ago

Thanks for updating!