prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Cannot compare tz-naive and tz-aware " "datetime-like objects

Open ihadanny opened this issue 5 years ago • 0 comments

just cloned and tried to run the quickstart and immediately stumbled on this :(

python examples/quickstart.py
Traceback (most recent call last):
  File "examples/quickstart.py", line 27, in <module>
    backtest = prophet.run_backtest(start=datetime(2010, 1, 1))
  File "/Users/hadanny/ws/prophet/prophet/app.py", line 60, in run_backtest
    timestamps = trading_days[(trading_days >= start) &
  File "/Users/hadanny/ws/prophet/venv/lib/python3.7/site-packages/pandas-0.25.0-py3.7-macosx-10.14-x86_64.egg/pandas/core/indexes/datetimelike.py", line 132, in wrapper
    result = op(self._data, maybe_unwrap_index(other))
  File "/Users/hadanny/ws/prophet/venv/lib/python3.7/site-packages/pandas-0.25.0-py3.7-macosx-10.14-x86_64.egg/pandas/core/arrays/datetimes.py", line 168, in wrapper
    self._assert_tzawareness_compat(other)
  File "/Users/hadanny/ws/prophet/venv/lib/python3.7/site-packages/pandas-0.25.0-py3.7-macosx-10.14-x86_64.egg/pandas/core/arrays/datetimes.py", line 793, in _assert_tzawareness_compat
    "Cannot compare tz-naive and tz-aware " "datetime-like objects"

Python 3.7.3

pip freeze
certifi==2019.6.16
chardet==3.0.4
cycler==0.10.0
idna==2.8
kiwisolver==1.1.0
lxml==4.4.1
matplotlib==3.1.1
numpy==1.17.0
pandas==0.25.0
pandas-datareader==0.7.4
-e git+https://github.com/Emsu/prophet.git@ea8232a649f0f323cd5aa7b47478b986647e15e0#egg=prophet
pyparsing==2.4.2
python-dateutil==2.8.0
pytz==2019.2
requests==2.22.0
scipy==1.3.1
seaborn==0.9.0
six==1.12.0
urllib3==1.25.3
wrapt==1.11.2

ihadanny avatar Aug 14 '19 06:08 ihadanny