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

FutureWarning: is_categorical_dtype is deprecated and will be removed in a future version. #430

Closed newini closed 9 months ago

newini commented 9 months ago

Expected Behavior

This is the future warning so should be fixed.

Actual Behavior

/var/lang/lib/python3.11/site-packages/category_encoders/utils.py:50: FutureWarning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, CategoricalDtype) instead
  return pd.api.types.is_categorical_dtype(dtype)

Steps to Reproduce the Problem

This is the future warning so should be fixed.

Specifications

newini commented 9 months ago

I found that the warning is already fixed in master branch. https://github.com/scikit-learn-contrib/category_encoders/blob/master/category_encoders/utils.py#L53C2-L53C2

Why not release?

PaulWestenthanner commented 9 months ago

I just released 2.6.3. Sorry for being a little late with this.