From ae05091bd4a3c287c4466f43ba841ea65f46e296 Mon Sep 17 00:00:00 2001 From: mattboggess Date: Sat, 6 Oct 2018 21:41:21 +0000 Subject: [PATCH 1/2] DOC: Clarify rolling min_periods default value GH21489 --- pandas/core/window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/window.py b/pandas/core/window.py index 4281d66a640e3..53d599f749aee 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -462,7 +462,8 @@ class Window(_Window): min_periods : int, default None Minimum number of observations in window required to have a value (otherwise result is NA). For a window that is specified by an offset, - this will default to 1. + this will default to 1. Otherwise, this will default to the size of the + window. center : boolean, default False Set the labels at the center of the window. win_type : string, default None From 9323c0020aa12e6f9fd94278628a22e15228df7d Mon Sep 17 00:00:00 2001 From: mattboggess Date: Sun, 7 Oct 2018 05:20:26 +0000 Subject: [PATCH 2/2] replace this with parameter name --- pandas/core/window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/window.py b/pandas/core/window.py index 53d599f749aee..ea0ec79d655fb 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -462,8 +462,8 @@ class Window(_Window): min_periods : int, default None Minimum number of observations in window required to have a value (otherwise result is NA). For a window that is specified by an offset, - this will default to 1. Otherwise, this will default to the size of the - window. + `min_periods` will default to 1. Otherwise, `min_periods` will default + to the size of the window. center : boolean, default False Set the labels at the center of the window. win_type : string, default None