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

prophet.serialize FutureWarning: The behavior of Timestamp.utcfromtimestamp is deprecated... #2554

Open
Hazzles opened this issue Feb 16, 2024 · 0 comments

Comments

@Hazzles
Copy link

Hazzles commented Feb 16, 2024

I apologise if this is duplicated somewhere else, but I couldn't find a similar issue. When loading a saved prophet model with prophet.serialize.model_from_json, I get a warning in the console:

C:\ProgramData\Anaconda3\envs\flaskapp-env\lib\site-packages\prophet\serialize.py:172: FutureWarning:

The behavior of Timestamp.utcfromtimestamp is deprecated, in a future version will return a timezone-aware Timestamp with UTC timezone. To keep the old behavior, use Timestamp.utcfromtimestamp(ts).tz_localize(None). To get the future behavior, use Timestamp.fromtimestamp(ts, 'UTC')

Just wondering if this is a known issue, or whether its to do with the versions of prophet, pandas or python I have.

prophet=1.1.5
pandas=1.5.3
python=3.9.17
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