how use bokeh vbar chart parameter with groupby object?
Question Below code is grouped vbar chart example from bokeh documentation. There are something i can't understand on this example. Where 'cyl_mfr' is come from in factor_cmap() and vbar()? 'mpg_mean' , is it calculating the mean of 'mpg' column? if then, why 'mpg_sum' doesn't work? I want to make my own vbar chart like this example. Code from bokeh.io import show, output_file from bokeh.models import ColumnDataSource, HoverTool from bokeh.plotting import figure from bokeh.palettes import Spectral5 from bokeh.sampledata.autompg import autompg_clean as df from bokeh.transform import factor_cmap