Skip to content

Commit

Permalink
Replace deprecated iteritems() with items() (#2461)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael72 committed Aug 21, 2023
1 parent 52a8723 commit 2ac9e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/prophet/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '')] += '<br>' # Add newline if additional holiday
text[idxs.astype(bool)] += holiday_feature

Expand Down

0 comments on commit 2ac9e8f

Please sign in to comment.