How to have a different choice of selections in a SelectboxColum for each row in my data_editor?

Hello Community!

I am displaying a DataFrame using streamlit.data_editor.
The DataFrame has the column “Name” which might contain an incorrect name.
I would like to add a column called “Known Name” it should be similar to a st.column_config.SelectboxColum, with the twist that it only suggests those names which are similar to the “Name” in the current row.
For example the “Name” is “3-Series” but in the list of known names we have [“3 Series”, “3 Serpant”, “Series”]. I would like to display these three values in the column with known names and let the user choose one.
I explicitly do not want to show all the known names in the second column, because actually I have 3 million known names and I do some filtering to only get the plausible ones.

Please help :sweat_smile:

I think this is not possible as the option is fixed.

The best probably that you can do is to create a selectbox for the name. User will select it. Once selected, you can display the known names.

As you have a huge known names, to find known names based on name, you can use similarity functions from openai or fuzzywuzzy or other libraries.