mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +00:00
Correction for issue #1304\n\nChange use of weekday_name to day_name to add consistency with pandas 1.0. (#1308)
This commit is contained in:
parent
d4c460e3dd
commit
ffb0ea86e2
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ def plot_weekly(m, ax=None, uncertainty=True, weekly_start=0, figsize=(10, 6), n
|
||||||
pd.Timedelta(days=weekly_start))
|
pd.Timedelta(days=weekly_start))
|
||||||
df_w = seasonality_plot_df(m, days)
|
df_w = seasonality_plot_df(m, days)
|
||||||
seas = m.predict_seasonal_components(df_w)
|
seas = m.predict_seasonal_components(df_w)
|
||||||
days = days.weekday_name
|
days = days.day_name()
|
||||||
artists += ax.plot(range(len(days)), seas[name], ls='-',
|
artists += ax.plot(range(len(days)), seas[name], ls='-',
|
||||||
c='#0072B2')
|
c='#0072B2')
|
||||||
if uncertainty and m.uncertainty_samples:
|
if uncertainty and m.uncertainty_samples:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue