QuantSoftware / QuantSoftwareToolkit

QuantSoftwareToolkit
Other
464 stars 215 forks source link

Cannot Find TimeSeries #73

Open divyesh2506 opened 7 years ago

divyesh2506 commented 7 years ago

  File "Validation.py", line 123, in <module>
    import QSTK.qstkutil.tsutil as tsu
  File "/usr/local/lib/python2.7/dist-packages/QSTK-0.2.8-py2.7.egg/QSTK/qstkutil/tsutil.py", line 19, in <module>
    from QSTK.qstkutil import qsdateutil
  File "/usr/local/lib/python2.7/dist-packages/QSTK-0.2.8-py2.7.egg/QSTK/qstkutil/qsdateutil.py", line 38, in <module>
    GTS_DATES = _cache_dates()
  File "/usr/local/lib/python2.7/dist-packages/QSTK-0.2.8-py2.7.egg/QSTK/qstkutil/qsdateutil.py", line 36, in _cache_dates
    return pd.TimeSeries(index=dates, data=dates)
AttributeError: 'module' object has no attribute 'TimeSeries'

Any Ideas on how to solve this?
Eimert commented 7 years ago

Fix is described in this pull request.

parrajeremy commented 7 years ago

Take a look at the version of Pandas you are using (i.e. run python Validation.py from Examples). Most likely you have too new a version; need to roll it back to (0.7.3). $pip install pandas==0.7.3

schneiderfelipe commented 6 years ago

As cited here, a workaround might be:

import pandas as pd
pd.TimeSeries = pd.Series