Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ihadanny opened this issue Aug 14, 2019 · 0 comments
Open

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

ihadanny opened this issue Aug 14, 2019 · 0 comments

Comments

@ihadanny
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant