Filter a dataframe before groupby

Hello
I am using Bokeh to create and standalone html report. My primary source of data is a dataframe . I already found how to update a table or a plot using customjs .However I would like to filter the original dataframe using a Select menu and after I would like to perform a grouping operation on the filtered dataframe So far I was not able to figure it out. Is it possible?

I was about to suggest converting your df to a ColumnDataSource and then filtering with CDSViews (see User Guide), but it sounds like the grouping operation on the df is the sticking point-- is that right?

Thanks Yes exactly I need to group every time I updated the select

I have posted an answer here:

In the future, if you must cross-post questions in different forums (e.g. StackOverflow, Twitter), we appreciate if you add cross-links everywhere, so that future users can always get to an answer, regardless of where they find find the question. (And please add a links for this post as well)

Hi Bryan
Thank you very much . I am not aware too much about JavaScript, do you in hands an example of grouping manually in JS.
Thank you again