Python 无数据显示的Bokeh图

Python 无数据显示的Bokeh图,python,bokeh,Python,Bokeh,我正在运行以下代码来渲染一个在x轴上有日期,在y轴上有浮动的绘图: import pandas as pd from bokeh.plotting import figure, output_file, show from bokeh.models import DatetimeTickFormatter from bokeh.charts import Bar, Line, show def datetime(x): return pd.DataFrame(x, dtype='date

我正在运行以下代码来渲染一个在x轴上有日期,在y轴上有浮动的绘图:

import pandas as pd
from bokeh.plotting import figure, output_file, show
from bokeh.models import DatetimeTickFormatter
from bokeh.charts import Bar, Line, show
def datetime(x):
    return pd.DataFrame(x, dtype='datetime64')

openxbids = pd.read_csv('data')
openxbids.sort_values('date')

output_file("lines.html")

p = figure(width=800, height=250, x_axis_type="datetime")

p.line(datetime(openxbids['date']), openxbids['bids'], color = 'navy', alpha=0.5)

show(p)

然而,当我运行这个程序时,我得到一个没有任何数据绘制的图形。x轴和y轴范围似乎被正确检测到。我遗漏了什么?

浏览器javascript控制台中是否有任何消息?这些数据系列的大小是多少?控制台中没有错误。数据系列有31个条目(1月的所有天数+2月的第一天)。每个日期的格式为“2017-01-01”或“YYYY-MM-DD”。最好的猜测是您将
x
coords设置为一个完整的数据帧。可能需要是数据帧或numpy数组中的单个列。不过,我不知道为什么它不会抱怨。事实上,我已经为这件事提出了一个GH问题。