In my callback i filter a dataframe on a given list from a pulldown-menu.
Though the code is working i get a callback error.
The problem seems to be in this simple line of code …
dm=df[drop_list]
In the traceback
line 3511, in __getitem__ndexer = self.columns._get_indexer_strict(key, “columns”)[1]
line 5782, in _get_indexer_strict
line 5845, in _raise_if_missing raise KeyError(f"{not_found} not in index")KeyError: ‘[None] not in index’
The variable drop_list is a list of columns , selected by the dropdown and passed through state to the callback.
so dm=df[[col4,col6]].
The code is working and my graph shows the right traces.
Is there a way to suppress the error ?