scikit-learn-contrib/category_encoders

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

newini opened this issue · 2 comments

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

  • Version: '2.6.2'
  • Platform: Python 3.11.4
  • Subsystem: WSL2
  • Pandas version: '2.1.2'

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?

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