Bokeh heatmap usage

╄→гoц情女王★ 提交于 2019-12-05 07:58:33

bigreddot is right. If you have 0.11, you shouldn't have legacy_charts. Once you properly update Bokeh, this should work:

from bokeh.charts import HeatMap, output_file, show
import pandas as pd

output_file('test.html')

hm = HeatMap(z, x='date', y='hour',  values='i', stat='count')

show(hm)

  1. On bigreddot pointers I reinstalled bokeh, didn't work even then. I got several times errors in pip3 (some bug on the linux distribution level).
  2. Then the python3-pip package, pandas and few others got purged.
  3. Afterwards rm -rf ~/.local/lib/python* was executed to cleanup the user-install direcotries.
  4. Then get-pip.py got downloaded.
  5. I reinstalled pip3 (+ ln -s ~/.local/bin/pip3 ~/bin) and reinstalled bokeh & pandas from the PyPi repositories.

Now everything works nicely. Thank you bigreddot for pointing in the right direction.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!