Somehow I still get an error.
Taking the example from the official documentation, I would need to alter the code as follows to only display selected countries in the charts below? dff = df if derived_virtual_selected_rows is None else pd.DataFrame(df)[derived_virtual_selected_rows]
@magueb I do not know much about DataTable but I know about pandas dataframe.
If I have a dataframe with the following:
And I want to filter index 2 and 5:
So, what you need to do is to understand what is the selected row returning, if it is returning only indices, you can pass it to the items, else you have to select the indices and pass it to the items.
There are different ways of filtering of course but you need to make sure what is being pass to them.