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
0
votes
0 answers

Python bokeh import error 'HoldPolicyType' from 'bokeh.core.enums'

While doing import of below Autoviz from autoviz.AutoViz_Class import AutoViz_Class getting the below error **ImportError:** cannot import name 'HoldPolicyType' from 'bokeh.core.enums' Have tried reinstall and downgraded bokeh to 2.3.3, its still…
0
votes
1 answer

How to open gmap via bokeh in a zoom value that will show all markers?

I run the following code, displaying google map via bokeh with markers on the map: gmap_options = GMapOptions(lat=lat, lng=lng, map_type=map_type, zoom=zoom) p = gmap(api_key, gmap_options, title='PhotosTrip', …
gtomer
  • 5,643
  • 1
  • 10
  • 21
0
votes
1 answer

Plot a line on a curve that is undersampled

I was wondering if there was a way to color a line to follow the curve from the user specified input. Example is shown below. The user wants to color a line that starts from x = 11, to x = 14 (see image below for the result). I tried f.ex df.loc[..]…
zape
  • 105
  • 1
  • 6
0
votes
0 answers

I can't seem to get my dates to work on Bokeh, plot is messed up

So I'm trying to learn Bokeh, using Jupyter notebooks. When I use this code it works great: '''' X=tesla['Date'] Y=tesla['Close'] output_file('time.html') #output file, have to import fig=figure(width=2000, height=2000,title='Tesla Stock',…
0
votes
0 answers

How to proportionally size plots' height in Bokeh?

I want two plots that stretch to fill up the entire window, like this: # to run this, use: bokeh serve --show test.py from bokeh.layouts import column from bokeh.plotting import figure, curdoc x = list(range(11)) y0 = x y1 = [10 - i for i in…
Jase
  • 1,025
  • 1
  • 9
  • 34
0
votes
1 answer

Does Hovertool/tooltip work with pandas df or only with ColumnDataSource

Pretty new to Bokeh. Plotting a barplot (after importing pandas_bokey) works well. But... I want to change the hoover tooltips. Question: should hoover tooltip work with a pandas df in Bokeh or must ColumnDataSource be used? thanks
Janneman
  • 343
  • 3
  • 13
0
votes
1 answer

Is it possible to link axes from different plots in pandas-bokeh package?

In regular Bokeh there is a nice feature of linking axes from different subplots in a grid which e.g. is very useful for zooming on multiple graphs simultaneously. But this doesn't seem to work in the pandas-bokeh package - any good solutions?
0
votes
1 answer

Implement a colored frame around graph tiles (panel bokeh) (holoViz bokeh)

How can I let bokeh draw a colored border (frame) around the graph tile? Some graph tiles have to be graphically highlighted against the other graphs and the customer therefore wants to have a colored border / colored frame around some graph tiles.…
0
votes
0 answers

Bokeh plot title 'str' object is not callable

In Jupyter Notebooks I read in a dataframe and create several plots with Pandas / Bokeh. While creating one of the latter I get an error. Search for similar problems said, that there might be somewhere above in the script something like plt.title =…
Swawa
  • 143
  • 1
  • 9
0
votes
2 answers

Plot maps in python error : no arguments in initialization list

From the following files I want to do a map plot by using folium: Polygons file: https://drive.google.com/file/d/1uhj7OyHktPseR_CtRD0vPfq8HziHA4RK/view? Postcode variable level:…
PeCaDe
  • 277
  • 1
  • 8
  • 33
0
votes
1 answer

How to rotate xticks in pandas-bokeh

.plot_bokeh(kind='bar',x='Weather',stacked=True,***xticks=?????????***) File ~\Anaconda3\lib\site-packages\pandas_bokeh\plot.py:658, in plot(df_in, x, y, kind, figsize, use_index, title, legend, logx, logy, xlabel, ylabel, xticks, yticks, xlim,…
0
votes
1 answer

creating html output file with plot bokeh

as a very simple example when I want to export a visualisation to a html in bokeh i'd do something like this: #importing bokeh from bokeh.plotting import figure from bokeh.io import output_file, show #data prep x=[1,2,3,4,5] y=[6,7,8,9,10] #prep…
0
votes
1 answer

Bokeh run time error, models must be owned by a single document

when trying to enter two datasource this error popped up. RuntimeError: Models must be owned by only a single document, StringFormatter(id='1266', ...) is already in a doc df_2 = pd.DataFrame({ 'Fields': x , 'C_Info': values }) src_1 =…
0
votes
1 answer

Bokeh models to plot interactive addition of columns using CustomJS and CheckboxGroup

I want a CheckboxGroup to represent different columns of a dataframe. The idea is for the user to be able to add multiple column values if they select multiple columns and interactively display the sum as a plot. I have the following plot from a…
Brain_overflowed
  • 426
  • 1
  • 5
  • 21
0
votes
1 answer

How to build a values density heatmap in Bokeh for timed window occurencies calculated in Spark?

According to https://stackoverflow.com/a/48692943/1759063 it is possible to aggregate the occurence on values per time unit like that: +---------+----------+------------------------+------------+------+ |device_id|read_date |ids …
Eljah
  • 4,188
  • 4
  • 41
  • 85