Skip to content

Commit

Permalink
Removed depreciated/unnecessary datetime conversion (#2523)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomthepeach committed May 18, 2024
1 parent c00f6a2 commit f89de32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/prophet/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def plot(
ax = fig.add_subplot(111)
else:
fig = ax.get_figure()
fcst_t = fcst['ds'].dt.to_pydatetime()
ax.plot(m.history['ds'].dt.to_pydatetime(), m.history['y'], 'k.',
fcst_t = fcst['ds']
ax.plot(m.history['ds'], m.history['y'], 'k.',
label='Observed data points')
ax.plot(fcst_t, fcst['yhat'], ls='-', c='#0072B2', label='Forecast')
if 'cap' in fcst and plot_cap:
Expand Down

0 comments on commit f89de32

Please sign in to comment.