Filter selectbox values based on another selectbox values

Just use:

unit = st.selectbox('Choose Unit', options=dict[prop], key=3)

Also don’t use dict as variable name as it is a data type in python. You can use mydict instead for example.

1 Like