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.41k stars 396 forks source link

Fix is_categorical_dtype deprecation #419

Closed felunka closed 1 year ago

felunka commented 1 year 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 1 year ago

Fixes #418

PaulWestenthanner commented 1 year ago

Thanks for updating!