问题标签 [pandas-bokeh]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
46 浏览

pandas - (pandas_bokeh) 如何在 Colab 的一个图中绘制两个 pd.Series?

例如,下面显示了两个图。我怎样才能在一个情节中绘制它们?

在此处输入图像描述

0 投票
1 回答
30 浏览

python - 如何在散景中为 Spark 中计算的定时窗口发生率构建值密度热图?

根据https://stackoverflow.com/a/48692943/1759063,可以像这样聚合每个时间单位的值的出现:

我想在 Zeppelin 中绘制它,X 为 read_time,Y 为整数 ID 值,计数将其转换为热图。我如何用 Bokeh 和 pandas 绘制它?

0 投票
1 回答
22 浏览

javascript - 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 previous help I got:

#xA;

And it is giving me the following error: ValueError: failed to validate CheckboxButtonGroup(id='1223', ...).js_event_callbacks: expected an element of Dict(String, List(Instance(CustomJS))), got CustomJS(id='1222', ...)

I am not good with JS and have no idea what it means!

Update: Now, after frustrating syntax changes that I am not sure if they are accurate, the above error went away but it doesn't plot combined or any columns from the source!

0 投票
0 回答
10 浏览

python - 无法在 Python Bokeh 中呈现标签

我已经通过手动使用列表成功显示了标签,但是当我尝试从数据框中导入数据时,我无法显示标签。有人可以帮我吗?

代码

输出

0 投票
1 回答
21 浏览

python - 如何创建频率散点图(如直方图,但使用点而不是条)和可选的误差线?

有人知道如何在 python(matplotlib, pandas_bokeh,...) 中绘制带有误差线的频率散点图,如果这样调用的话?
我想要的是 y 轴上的事件数(计数,而不是值)与 x 轴中的相应值,实际上就像直方图一样,但我想使用点而不是条形。并可能在提到的点上添加误差线。
它看起来像这样:在此处输入图像描述