Skip to content

Commit

Permalink
Update column_config_utils.py (#7477)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bik committed Oct 4, 2023
1 parent cafea21 commit bd37671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/streamlit/elements/lib/column_config_utils.py
Expand Up @@ -330,7 +330,7 @@ def _determine_data_kind(
The data kind of the column.
"""

if pd.api.types.is_categorical_dtype(column.dtype):
if isinstance(column.dtype, pd.CategoricalDtype):
# Categorical columns can have different underlying data kinds
# depending on the categories.
return _determine_data_kind_via_inferred_type(column.dtype.categories)
Expand Down

0 comments on commit bd37671

Please sign in to comment.