Tstables模块下,通过ts.append(df),输入df--Dataframe数据时,出错,报AttributeError: module 'pandas.tseries' has no attribute 'index'。
《Python金融大数据分析》第9章259页in[220]那行代码。
求能人解答
Tstables模块下,通过ts.append(df),输入df--Dataframe数据时,出错,报AttributeError: module 'pandas.tseries' has no attribute 'index'。
《Python金融大数据分析》第9章259页in[220]那行代码。
求能人解答
可能是版本bug 把pandas.tseries.index.DatetimeIndex改为pandas.DatetimeIndex试试呢 或者更新pandas的版本