st.column_config.SelectboxColumn: Extend config with dict mapping to separate backend and user value representation. #6795
Labels
feature:st.column_config
Related to column config functionalities
type:enhancement
Requests for feature enhancements or new features
Problem
The current implementation of a select box is a great start but not always the data from the backend for the category options is the like the one for GUI. I'm missing a format function/option like in other widgets.
Usually, options like this won't come from the backend directly and need to be converted before displaying them in the front end. I would really like to use a built-in solution for that, instead of formatting the panda's data frame before referencing it in the data editor as well as afterward to convert the users' selection back to the backend representation of the values.
Solution
A solution for that could be extending the config with a dictionary mapping to the user representation. In a way that it's just for display purposes.
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.
The text was updated successfully, but these errors were encountered: