Data_editor: Update a cell while selectbox from colum_config changes

I have a column in a dataframe with a selectbox from the st.column_config class, and I want another column that copies that value (actually, that value performs a vlookup in another table).

The “MaterialCopy” column is the one being updated.

edited_df = st.data_editor(df,column_config={
                            "Material": st.column_config.SelectboxColumn(
                                "Material",width="small",
                                options=materials.tolist()),
                            "MaterialCopy": ""#Value from material Material column
            })

Hi @luisflarota

Have you looked into the following 2 tutorial blogs which shows how to perform filtering on a DataFrame

Those are nice! However, I am trying to change the cell’s values dynamically. I set up a column a have another table for that.

Luis.

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