From ffb0ea86e28e7dcbe97d6216a23330efdbc89126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Madureira=20Rodrigues?= Date: Mon, 3 Feb 2020 17:40:20 -0300 Subject: [PATCH] Correction for issue #1304\n\nChange use of weekday_name to day_name to add consistency with pandas 1.0. (#1308) --- python/fbprophet/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/fbprophet/plot.py b/python/fbprophet/plot.py index a8492d0..1e3d727 100644 --- a/python/fbprophet/plot.py +++ b/python/fbprophet/plot.py @@ -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: