如何将时间从时间戳转换为散景悬停中的可读时间?

时间:2018-06-06 08:34:39

标签: python hover bokeh

我需要在散景悬停工具上转换时间。它向我展示了unix时间戳,而不是可读的。

代码:

up = df["up"]
ttime = time["timetable"]
time = pandas.to_datetime(time, unit='s')
p.line(time, up, color='#2828B0', line_width=1, legend='Up')


hover = HoverTool(tooltips = [('Time', '@x'),
                         ('Value', '@y GB')])

Check The Time!!

0 个答案:

没有答案