Hello,
The st.selectbox has a very useful (albeit little documented) fomat_func parameter.
This is great when designing a user interface that handles data stored as IDs in the database but for which the user only needs to see the corresponding label.
It would be great to have the same thing for SelectboxColumn in data_editor.
Is there a way to do that?
Is it a planned feature?
I’ve found a way around with things like df['ID'].astype('str') + " - " + df['LABEL']
in the option and .str.split(expand=True)[0]
with the output to retrieve the ID, but it’s a bit clunky, and not really nice looking for the user.
Thanks