Questions tagged [pandas-bokeh]

This tag should be added when `pandas_bokeh` library functions are used in the code. It uses Bokeh as plotting backend but has its own high-level API.

Pandas Bokeh provides a Bokeh plotting backend for Pandas and GeoPandas, similar to the already existing Visualization feature of Pandas. Importing the library adds a complementary plotting method plot_bokeh() on DataFrames and Series.

For more information and examples have a look at the Github Repository.

80 questions
25
votes
4 answers

Change pandas plotting backend to get interactive plots instead of matplotlib static plots

When I use pandas df.plot() it has matplotlib as a default plotting backend. But this creates static plots. I would like interactive plots, so I have to change the pandas plotting background. How do I do change the plotting backend of pandas to…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
5
votes
5 answers

"AttributeError: unexpected attribute 'plot_width' to figure, similar attributes are outer_width, width or min_width " with pandas_bokeh

I am trying to use pandas_bokeh to create a line graph with a pandas dataframe I call bucketed_df import pandas_bokeh pandas_bokeh.output_notebook() bucketed_df.plot_bokeh(kind='line') for some reason I get the error AttributeError: unexpected…
2
votes
1 answer

How to update Span (Bokeh) using ColumnDataSource?

I am trying to update Span using ColumnDataSource, but the information is not being passed onto the source. Span unfortunately does not have a paremeter "source", so is there a better way? I have defined my sources, figure and line like…
aajw98
  • 41
  • 4
2
votes
1 answer

Timeline Slider for Dataset Python Bokeh

I need ur help. I try to plot a route on a map. The dataset consists of lon and lat. I want to include only a part of the route with a interactive solution like a RangeSlider. For example only the 2th and 4th index. Unfortunately I do not know how…
Pm740
  • 339
  • 2
  • 12
2
votes
0 answers

Adding a label to points in a Bokeh graph automatically

I want to add labels to certain points in a Bokeh graph, but I want to do it only via the x-value, without having to state the y-value. The illustration of the plot and the image is linked. the points that I want to label exists in the beginning of…
Lulu Firdaus
  • 53
  • 1
  • 8
2
votes
1 answer

Bokeh Table filter based on date

I have created website using Bokeh. My website shows table. I am looking for help on filtering df(Pandas dataframe) based on "Date" criteria. User need to input "from" date and "to" date. and then output table should show up on website. It seems I…
2
votes
1 answer

export_png Bokeh with all layers

I try to make bokeh plot and export it in PNG. When i add legend layer it export empty image and i don't know why. And when i exportinf png, i always watch this messege : "WARNING - The webdriver raised a TimeoutException while waiting for a…
Gleb
  • 146
  • 7
2
votes
1 answer

HoverTool on Bokeh: Time format issue (date do not appear correctly) x axis from datetime DF column in pandas

Here the code I wrote. I took the data from pandas DF (not pasted here). The x values are from DF index columns that is a DateTime column. The issue that I want to resolve is in line: TOOLTIPS = [("index", "$index"),("(Time,Temperature)", "($x,…
SBN
  • 51
  • 3
1
vote
1 answer

Nested pie chart in bokeh

I'm trying to achieve the following o/p from bokeh which is deprecated now. In the new structure, I need to layer everything like working in HTML. Is there any simplified example like this bokeh pie chart(deprecated) ?
ArulRulzz
  • 87
  • 6
1
vote
0 answers

Using local files in bokeh.plotting

I am using bokeh to display pins on a map and want when hoovering to display a JPG. The code below works well when the image is from the internet (i.e. with a URL) but how can I make it work if the image is on the local drive, i.e.…
gtomer
  • 5,643
  • 1
  • 10
  • 21
1
vote
0 answers

Plot 2D graph using Bokeh

I'm trying to plot a graph using Bokeh. I did it using matplotlib but I can't figure out how I can plot 2D array using Bokeh. This is my code for plotting with matplotlib: [row, col] = point_data.shape # select columns names text =…
Abirdh
  • 11
  • 2
1
vote
1 answer

How to create frequency scatter plot(like histogram but with dots instead of bars) and with optional error bars?

Does someone knows how in python(matplotlib, pandas_bokeh,...) plot frequency scatter plot with error bars, if it is called like that? What I want is on y axis to have number of events(counts, instead of value) with the corresponding value in x…
Falco Peregrinus
  • 507
  • 2
  • 7
  • 19
1
vote
0 answers

Bokeh code to open pop up window showing data table on button click

I am developing a web application using bokeh. My requirement is to open pop up window on button click. The pop up window should display a data table widget. Secondly, This pop up window is draggable. Since my application is web based so cannot use…
1
vote
1 answer

Bokeh import json_item serialized JSON in Jupyter

Cross-post on Bokeh forums: https://discourse.bokeh.org/t/display-json-item-serialized-json-in-jupyter-notebook/7245/3 I've serialized my Bokeh plot to json using bokeh.embed.json_item, as described in the documentation:…
Abhishek Divekar
  • 1,131
  • 2
  • 15
  • 31
1
vote
1 answer

Bokeh: X-axis Date format and Candle Stick graph Hover Date issues

I am new to Stackoverflow and I am trying to build a Candle stick Chart using Bokeh from python. I understand that there is a sample code in the Bokeh doc. I have tried to use the sample code and rebuild my graph. I have pasted my code below with…
Omerge
  • 69
  • 1
  • 7
1
2 3 4 5 6