Removed depreciated/unnecessary datetime conversion (#2523)

This commit is contained in:
Tom Peachey 2024-05-18 11:17:18 +00:00 committed by GitHub
parent c00f6a2d72
commit f89de329bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: