-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Problem
When displaying an index/multi-index that includes a category datatype, a warning is displayed saying "The value is not part of the allowed options."
I can't find much documentation on this apart from previous closed issues which all seem to say it should work, but this definitely appears to be a Streamlit warning (it even has a "
e.g., st.dataframe(df) where df.index has dtype == "category"
Solutions
My current temporary solution is just to reset the index, but then you lose the Excel-like frozen column scrolling...
i.e., st.dataframe(df.reset_index()) gets rid of the warning at least.
Additional context
May be linked to:
#47, #453, #4927
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.