-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
FutureWarning of DatetimeProperties.to_pydatetime is depircated for plot_plotly and m.plot() #2492
Comments
Facing the same issue, even if I haven't used the to_pydatetime function. |
Here a prophet example that returns this error message.
|
You can reproduce the plot with something like this.
|
Merged
Facing this issue same: import pandas as pd
from prophet import Prophet
df = pd.read_csv('example_wp_log_peyton_manning.csv') # https://raw.githubusercontent.com/facebook/prophet/main/examples/example_wp_log_peyton_manning.csv'
# df = pd.read_csv('a.csv')
# h = df.head()
# print(h)
m = Prophet()
m.fit(df)
future = m.make_future_dataframe(periods=365)
t = future.tail()
print(t)
forecast = m.predict(future)
r = forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']].tail()
print(r)
fig1 = m.plot(forecast)
# fig2 = m.plot_components(forecast)
fig1.show()
# fig2.show()
|
YuyuZhou1228
added a commit
to YuyuZhou1228/prophet
that referenced
this issue
Jul 13, 2024
an extension of facebook#2523, removed remaining instances of the depreciated and unnecessary use of .dt.to_pydatetime()
WardBrian
added a commit
that referenced
this issue
Sep 23, 2024
Removed remaining depreciated datetime conversions (#2492)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The m.plot(forecast) or the plot_plotly(m, forecast) functions when executed result in a FutureError the reads as follows
If there is any way to get through this, please help me or please make necessary changes to resolve this error.
The text was updated successfully, but these errors were encountered: