我尝试使用Bokeh绘制一个包含年份和数字1的DateTime列的Pandas数据帧。如果DateTime被指定为x,则行为是预期的(x轴上的年份)。但是,如果我使用set_index将DateTime列转换为数据帧的索引,然后仅在TimeSeries中指定y,我将在x轴上获得以毫秒为单位的时间。一个最小的例子import numpy as np
from bokeh.charts impor
我有两个numpy数组light_points和time_points,我想对这些数据使用一些时间序列分析方法。实际上,测量值的时间间隔并不均匀,如果我只是将time_points pandas DataFrame声明为我的帧的索引,我会得到一个错误:
ValueError: You must specify a freq or x must be