From 792165067972d4e4ce23cc228acaa3a143511ba0 Mon Sep 17 00:00:00 2001 From: tp Date: Fri, 31 Jan 2020 10:18:01 +0000 Subject: [PATCH] DOC: Parameter doc strings for Groupby.(sum|prod|min|max|first|last) --- pandas/core/groupby/groupby.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 71e7aafbca27d..54275dc52bb56 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1351,13 +1351,22 @@ def groupby_function( _local_template = """ Compute %(f)s of group values. + Parameters + ---------- + numeric_only : bool, default %(no)s + Include only float, int, boolean columns. If None, will attempt to use + everything, then use only numeric data. + min_count : int, default %(mc)s + The required number of valid values to perform the operation. If fewer + than ``min_count`` non-NA values are present the result will be NA. + Returns ------- Series or DataFrame Computed %(f)s of values within each group. """ - @Substitution(name="groupby", f=name) + @Substitution(name="groupby", f=name, no=numeric_only, mc=min_count) @Appender(_common_see_also) @Appender(_local_template) def func(self, numeric_only=numeric_only, min_count=min_count):