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:
Rômulo Madureira Rodrigues 2020-02-03 17:40:20 -03:00 committed by GitHub
parent d4c460e3dd
commit ffb0ea86e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -288,7 +288,7 @@ def plot_weekly(m, ax=None, uncertainty=True, weekly_start=0, figsize=(10, 6), n
pd.Timedelta(days=weekly_start))
df_w = seasonality_plot_df(m, days)
seas = m.predict_seasonal_components(df_w)
days = days.weekday_name
days = days.day_name()
artists += ax.plot(range(len(days)), seas[name], ls='-',
c='#0072B2')
if uncertainty and m.uncertainty_samples: