How do I access `self` in callback method?

Hey @chriddyp. So I think I’m confusing myself, but the component that I’m trying to build out is basically a set of dropdowns that will “waterfall” information down based on a Pandas Dataframe that has the mapping structure of the relationships in long format. (i.e. lets say that it is a DataFrame that looks like this:
image)
Now I would like two sets of dropdowns, of which the first set allows you to choose the order of the columns to be sliced (I.e. subject > sex > condition | sex > subject > condition | condition > sex > subject, etc). And the second set of dropdowns would set the options for the dropdown based on column order selected in the first set of dropdowns (i.e. If I selected subject > sex > condition in the first set of dropdowns, it would allow me to choose from (1,2,3,4), then (M, F), then (control, cond1, cond2). The ultimate goal of this being to create the ability for a user to dynamically slice and aggregate data , just given a table of mapping options. If I could solve this problem, then it would allow me to iterate through exposing data from a database and would allow the user to have full flexibility on how they view the data. Any help that you can provide on this front would be immensely appreciated and I’m happy to answer any questions you have or try to get off the ground with best attempt at it. Thank you!! :slight_smile: