From e7a2fbcb9c8768e58b9e973ee8f283939a73617e Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Tue, 3 Aug 2021 14:14:51 -0400 Subject: [PATCH] bugfix --- .../python/plotly/plotly/express/trendline_functions/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/python/plotly/plotly/express/trendline_functions/__init__.py b/packages/python/plotly/plotly/express/trendline_functions/__init__.py index ace0c15bc6..67c0c54055 100644 --- a/packages/python/plotly/plotly/express/trendline_functions/__init__.py +++ b/packages/python/plotly/plotly/express/trendline_functions/__init__.py @@ -93,6 +93,7 @@ def lowess(trendline_options, x_raw, x, y, x_label, y_label, non_missing): def _pandas(mode, trendline_options, x_raw, y, non_missing): modes = dict(rolling="Rolling", ewm="Exponentially Weighted", expanding="Expanding") + trendline_options = trendline_options.copy() function_name = trendline_options.pop("function", "mean") function_args = trendline_options.pop("function_args", dict()) series = pd.Series(y, index=x_raw)