Filter selectbox values based on another selectbox values

In addition to @ferdy’s fix, you can simplify your other options= code a fair amount by just using df.columns for the first one and then my_dict.keys() or just my_dict for the second one. This works because options works with a wide range of iterable objects, not just lists and tuples.

1 Like