Skip to content
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

Fix is_categorical_dtype deprecation #419

Conversation

felunka
Copy link
Contributor

@felunka felunka commented Sep 5, 2023

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:
pandas-dev/pandas#33385

Replacing instances with the recommended alternative to use "isinstance"

@felunka
Copy link
Contributor Author

felunka commented Sep 5, 2023

Fixes #418

@PaulWestenthanner
Copy link
Collaborator

Thanks for updating!

@PaulWestenthanner PaulWestenthanner merged commit 80b4a9b into scikit-learn-contrib:master Sep 10, 2023
5 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants