From 025e6ae2e9de9036c0b64f9f6571f00888b9f403 Mon Sep 17 00:00:00 2001 From: Rajat Subhra Mukherjee Date: Tue, 19 Sep 2023 01:12:38 +0530 Subject: [PATCH] DOC: added deprecation message in docs for DataFrame.rolling (#55177) * added deprecation message in docs * requested changes --- pandas/core/window/rolling.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index becbba703f92c..72e94d049a9de 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -937,6 +937,11 @@ class Window(BaseWindow): For `Series` this parameter is unused and defaults to 0. + .. deprecated:: 2.1.0 + + The axis keyword is deprecated. For ``axis=1``, + transpose the DataFrame first instead. + closed : str, default None If ``'right'``, the first point in the window is excluded from calculations.