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
1 answer

(pandas_bokeh) How to plot two pd.Series in a single plot in Colab?

For example, the following displays two plots. How can I draw them in a single plot? import pandas as pd import pandas_bokeh pd.set_option('plotting.backend', 'pandas_bokeh') pandas_bokeh.output_notebook() pd.Series(np.random.randint(0, 7,…
0
votes
1 answer

Constant values invisible in zoomed out bokeh line plot

I'm trying to create a line plot of a ~30.000 entries long array using pandas_bokeh in jupyter-notebook but constant values seem to be invisible when . When I further I can see that the data points are there but somehow dashed. I tried the options…
NoMonkey
  • 3
  • 3
0
votes
1 answer

Incorporating widgets with pandas_bokeh; getting "ValueError" message

I am trying to incorporate some bokeh widgets with pandas_bokeh plots within a dashboard in order to interactively update them through filtering. However, when I launch the dashboard, I get a blank browser tab. Here is my code:- import numpy as…
metaltoaster
  • 380
  • 2
  • 15
0
votes
1 answer

Convert panel.widgets.tables.Tabulator to layoutDOM

I'm new to Bokeh so apologies if I get the terminology wrong. I have a simple dashboard and I'm trying to add a chart using tabulator to the page docs The basic setup is as follows from bokeh.models import Select, Panel from bokeh.models.widgets…
apoursh
  • 27
  • 5
0
votes
1 answer

bokeh widget does not update plot

I'm new with bokeh plots and I'm trying plot a map with a slider, but it's not updating. I've tried many ways, but it still not updating the plot. I'm using bokeh server and non geographic plots I've got it... what i'm doing is : def…
0
votes
0 answers

Pandas dataframe and bokeh plot not updating with slider widget

I am trying to plot summary stats from a pandas dataframe using bokeh visualisation. My aim is to use a slider to filter the data to be plotted and to update the plot accordingly. However, when I launch my bokeh app, neither is happening. Here is…
metaltoaster
  • 380
  • 2
  • 15
0
votes
1 answer

Bokeh layout update on CustomJS callback

I am new to bokehJS and I need to update the plot based on dropdown values. For initial load am using below code to add arrow in layout of the plot. But, whenever I change the value on dropdown plot gets updated however arrow gets…
Pritam
  • 1,288
  • 5
  • 23
  • 40
0
votes
1 answer

updating pandas-bokeh charts with additional elements

I'm working in a Jupyter Notebook with pandas and pandas-bokeh. I can create a chart no problem, but when I want to add an element (like a Span), I can't figure out how to avoid getting a second copy of the chart displayed in the notebook. Is there…
sql_knievel
  • 1,199
  • 1
  • 13
  • 26
0
votes
1 answer

Extract the max and min values from a ColumnDataSource column

I'm doing a Bokeh application in which I have an input table, some calculations are performed on it and it produces a new table. I'm trying to plot a heatmap of this new table, so I have to create a colorbar using the LinearColorMapper function,…
andrespm
  • 23
  • 5
0
votes
1 answer

Bokeh: Updating of legend when using different views

I have an issue with updating legend_groups in bokeh: My data is based on four columns: x-values, y-values, categorization, geography. I created a scatterplot in Bokeh with all scatter points coming from the same x- and y-column. I split the scatter…
0
votes
1 answer

Plotting candlestick and volume candels in Bokeh

I have plotted the candlestick using bokeh. Now i want to plot the volume candles in the same chart? How do I achieve that. I am reading the data from csv which has open,high,low,close and volume.
monucool
  • 425
  • 1
  • 6
  • 15
0
votes
1 answer

Plot multiple lines with Python Bokeh fom the same dataset

Is there a possibility to achive plots like sample1 with Bokeh? Sample1 was created with Matplotlib. My goal is to plot multiple short lines which are separated from each other on the map. But the lines share the same source and are just different…
Pm740
  • 339
  • 2
  • 12
0
votes
1 answer

plot stacked bar chart using bokeh

I am trying to plot a stacked bar chart using bokeh by following this segment of the documentation. but my data frame is a tad more complex. it looks like this: events count Name a 2 jerry b 1 jerry …
Devarshi Goswami
  • 1,035
  • 4
  • 11
  • 26
0
votes
1 answer

Bokeh Pandas plot using SQLite data

I am using an SQLite database with Pandas and want to display the dynamic data using Bokeh (varea_stack) My dynamic data (df) structure looks like this: id date site numberOfSessions ... avgSessionDuration …
Llewellyn Hattingh
  • 306
  • 1
  • 5
  • 16
0
votes
1 answer

How to make area chart cover all area below it in pandas bokeh?

I tried to make an area chart with pandas-bokeh package using this code: import pandas as pd import numpy as np import pandas_bokeh df = pd.read_excel('D:/Coding Practice/data/data_corona_usa.xlsx') df = df.iloc[::-1].reset_index() df['Cummulative…
Aldwin
  • 3
  • 1