From 074aeb671df9489d55f012f611763ba475795a2e Mon Sep 17 00:00:00 2001 From: Matthew Roeschke Date: Sun, 3 Oct 2021 21:31:28 -0700 Subject: [PATCH 1/2] Add deprecation tag for passing a string for ewm(times=...) --- pandas/core/window/ewm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index 79102c2bc82ee..873b889dd9042 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -205,6 +205,9 @@ class ExponentialMovingWindow(BaseWindow): If str, the name of the column in the DataFrame representing the times. + .. deprecated:: 1.4.0 + + If 1-D array like, a sequence with the same shape as the observations. Only applicable to ``mean()``. From e77dd9c86bf645859a7a125c577189e0e05ee230 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke Date: Sun, 3 Oct 2021 22:41:33 -0700 Subject: [PATCH 2/2] Fix error --- pandas/core/window/ewm.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index 873b889dd9042..29a6704ae5092 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -207,7 +207,6 @@ class ExponentialMovingWindow(BaseWindow): .. deprecated:: 1.4.0 - If 1-D array like, a sequence with the same shape as the observations. Only applicable to ``mean()``.