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

fixes pandas is_categorical_dtype deprecation warning #7477

Conversation

c-bik
Copy link
Contributor

@c-bik c-bik commented Oct 3, 2023

Describe your changes

Fixes this warning from pandas

streamlit/elements/lib/column_config_utils.py:333: 
FutureWarning: is_categorical_dtype is deprecated and will be removed in a future version.
Use isinstance(dtype, CategoricalDtype) instead

GitHub Issue Link (if applicable)

N/A
Haven't created one since it was just an one liner fix. Please let me know if that is absolutely necessary here.

Testing Plan

N/A
Since this fixes an warning to a dependent library, I feel no streamlit specific testing is required.


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Copy link
Collaborator

@vdonato vdonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @c-bik!

@vdonato vdonato merged commit bd37671 into streamlit:develop Oct 4, 2023
58 of 61 checks passed
@c-bik c-bik deleted the fix/c-bik/pandas-is_categorical_dtype-deprecation-warning branch October 4, 2023 18:29
@LukasMasuch LukasMasuch mentioned this pull request Oct 13, 2023
4 tasks
eric-skydio pushed a commit to eric-skydio/streamlit that referenced this pull request Dec 20, 2023
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Mar 22, 2024
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants