I’m trying to recreate the HeatMap example from Using High-level Charts — Bokeh 0.9.3 documentation
rom bokeh.charts import HeatMap, output_file, show
import pandas as pd
output_file('heatmap.html')
df = pd.DataFrame(
dict(
apples=[4, 5, 8],
bananas=[1, 2, 4],
pears=[6, 5, 4],
),
index=['2012', '2013', '2014']
)
p = HeatMap(df, title='Fruits')
show(p)
Unfortunately, it doesn’t plot correctly on 0.14.3
How can I use a dataframe on bokeh?
Thanks,
Jose

