I am trying to make a subset of a pandas dataframe in a callback function.
The subset should be based on the clickData of a graph.
This is the Div it should go in:
And this is the callback function that should handle the click:
If i run this, i get the following error:
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
Can someone help me in explaining why this happens?
Thanks in advance!