this must be a simple one, but I can’t figure it out.
I have a Crossfilter dashboard running here http://www.logeeka.com/cruises/average_ratings_configurable.html.
It is powered by this dataframe
Line 8760 non-null object Ship 8760 non-null object Month 8760 non-null object Year 8760 non-null object Rating 8760 non-null int64 Count 8760 non-null int64
and it works perfectly if I want to see, for instance the average rating by year, or line.
I would like to see the percentage distribution of ratings, what % of ratings are 1 star, 2 star, eccetera,be able to see how this distribution changes in different years, or different cruise lines. This is a problem I have very often across my dashboard, where often I show, for instance, marketshare, that I need to see recalculated at the country, market, or category level.
I assume I need to do something with the dataframe I pass to the bokeh app, but have been totally insuccessfull. This might be a Pandas question more than a Bokeh question, but cannot make it work here.
Thanks so much