我正在尝试制作带有滑块的交互式图表来控制日期和时间所以我尝试这样做
from ipywidgets import widgets, FloatSlider
import pandas as pd
from matplotlib import pyplot as plt
DateList = ['2013-01-01', '2013-01-02', '2013-01-03']
ts = pd.to_datetime(pd.Series(DateList))
Slider = FloatSlider(min=min(ts), max=max(ts), step=1,
value=pd.Timestamp('2013-01-01'))
但这不起作用?我怎样才能做到这一点?