我需要在散景悬停工具上转换时间。它向我展示了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')])