RJT1990 / pyflux

Open source time series library for Python
BSD 3-Clause "New" or "Revised" License
2.1k stars 240 forks source link

AttributeError: module 'pandas.tseries' has no attribute 'index' #101

Closed nguyenhuyanhh closed 7 years ago

nguyenhuyanhh commented 7 years ago

Hello! I'm fairly new to pyflux, trying to do a predict() using GARCH but it always gives this error

File "garch.py", line 22, in predict
    pred = model.predict(h=100)
  File "/home/nhanh/.local/lib/python3.5/site-packages/pyflux/garch/garch.py", line 638, in predict
    date_index = self.shift_dates(h)
  File "/home/nhanh/.local/lib/python3.5/site-packages/pyflux/tsm.py", line 537, in shift_dates
    if isinstance(date_index,pd.tseries.index.DatetimeIndex):
AttributeError: module 'pandas.tseries' has no attribute 'index'

I'm using Python 3.5 on linux64, pandas 0.20.2. Is this a pandas specific issue?

nguyenhuyanhh commented 7 years ago

Never mind, I'm using pyflux 0.14.4 and I think 0.14.5 fixed this issue. Will test and update