bokeh docs heatmap example broken
See original GitHub issueWhen running the example at http://bokeh.pydata.org/en/0.12.0/docs/reference/charts.html#heatmap with bokeh 0.12.0, an error occurs, e.g.
Traceback (most recent call last):
File "heatmap.py", line 16, in <module>
p = HeatMap(df, title='Fruits')
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/builders/heatmap_builder.py", line 92, in HeatMap
chart = create_and_build(HeatMapBuilder, data, xgrid=xgrid, ygrid=ygrid, **kw)
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/builder.py", line 73, in create_and_build
chart.add_builder(builder)
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/chart.py", line 171, in add_builder
builder.create(self)
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/builder.py", line 531, in create
self.process_data()
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/builders/heatmap_builder.py", line 172, in process_data
columns=self.values.selection)
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/attributes.py", line 198, in setup
self.attr_map = self._create_attr_map(self.data.to_df(), self.columns)
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/attributes.py", line 168, in _create_attr_map
self._generate_items(df, columns)
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/attributes.py", line 249, in _generate_items
bins=len(self.iterable), aggregate=False)
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/stats.py", line 311, in __init__
super(BinnedStat, self).__init__(**properties)
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/stats.py", line 56, in __init__
self._refresh()
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/stats.py", line 62, in _refresh
self.calculate()
File "/usr/local/lib/python2.7/dist-packages/bokeh/charts/stats.py", line 365, in calculate
self.source.add(binned.tolist(), name=self.bin_column)
AttributeError: 'Categorical' object has no attribute 'tolist'
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
Heatmap Not Displaying --> Blank Screen - Bokeh Discourse
I am trying to create a Heatmap from a csv using python pandas. I keep on getting a blank screen for my output,...
Read more >Python 3 Bokeh Heatmap Rect simple example not showing ...
I'm trying to color code a simple categorical heatmap using python's Bokeh library. For example, given the following ...
Read more >Customizing Plots — HoloViews v1.15.3
While different plotting extensions like bokeh, matplotlib and plotly offer ... Plots have an overall hierarchy and here we will break down the...
Read more >Plotting — hvPlot 0.8.2 documentation
Here we will use the sample data module and load the pandas and dask ... it uses HoloViews to generate either static or...
Read more >python-bokeh-0.12.15-bp150.1.3 - SUSE Package Hub -
... docs] Fix typo in docs + #7515 [component: bokehjs] Bokeh 0.12.14 doesn't ... compatibility + #4743 [component: docs] Bokeh docs heatmap example...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@duncangh bokeh.charts has moved to a new separate repo and project all issues for it should go here https://github.com/bokeh/bkcharts
I have a similar issue running Jupyter Notebook heat map example.
pandas=‘0.20.1’ bokeh=‘0.12.5’