python - Stacked bar chart with bokeh and pandas dataframe -


i trying make stacked bar chart in bokeh using pandas dataframe, , want change column used designate separate bars, , column used designate stacked units within bar.

my data looks this

                count   continent  | | e   category             5    0   0   b           2    0   0   c           0    0   9   d           0    6   0   e           0    0   3 

bokeh automatically making "category" bars , "continent" stacked units. i'd inverse.

the code i'm using simply

p = bar(data, stacked=true) show(p) 

thanks help!

j


Comments