Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
newini opened this issue Oct 27, 2023 · 2 comments

Comments

@newini
Copy link

newini commented Oct 27, 2023

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'
@newini
Copy link
Author

newini commented Oct 27, 2023

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants