st.column_config.SelectboxColumn with different options in each row

Summary

Hi, I am creating a Data Editor with st.column_config.SelectboxColumn. However, I would like to have different options in each row of the select box. For example, each row corresponds to one user and for each user, there will be most common common tags that are associated with the specific user.

To be honest, I don’t really need something to be selected, but it’s a nice functionality that you can have it as a ‘dropdown menu’ and see certain information for each user. Is there a way to do this?

Hi @A_Bahelka, as far as I know, the column config of the data editor is common for the entire column.

If you don’t have too many users, you could dynamically create your column(s), using a loop and the standard streamlit drop-downs. That way you can programmatically set the drop-down options for each row of the column(s).

Cheers

1 Like

Thanks a lot!:slight_smile:

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.