derived_virtual_selected_rows (list of numbers; optional): derived_virtual_selected_rows represents the indices of the selected_rows from the perspective of the derived_virtual_indices.
Notice that this property represents the index value, i.e. what you want probably is going to be pd.DataFrame(data)[derived_virtual_selected_rows].
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:
dataframe.filter(items=[2,5], axis=0)
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.