From 2ac9e8fa760e587371e1d1260f3e9f1fac9d76cb Mon Sep 17 00:00:00 2001 From: Michael Schulte Date: Tue, 22 Aug 2023 00:27:06 +0200 Subject: [PATCH] Replace deprecated iteritems() with items() (#2461) --- python/prophet/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/prophet/plot.py b/python/prophet/plot.py index c531729..3bc1327 100644 --- a/python/prophet/plot.py +++ b/python/prophet/plot.py @@ -867,7 +867,7 @@ def get_forecast_component_plotly_props(m, fcst, name, uncertainty=True, plot_ca holiday_features.columns = holiday_features.columns.str.replace('_delim_', '', regex=False) holiday_features.columns = holiday_features.columns.str.replace('+0', '', regex=False) text = pd.Series(data='', index=holiday_features.index) - for holiday_feature, idxs in holiday_features.iteritems(): + for holiday_feature, idxs in holiday_features.items(): text[idxs.astype(bool) & (text != '')] += '
' # Add newline if additional holiday text[idxs.astype(bool)] += holiday_feature