Skip to content

Commit 92d2164

Browse files
committed
Add Parameter doc strings
1 parent 5726bdd commit 92d2164

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

pandas/core/groupby/groupby.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,12 @@ def mean(self, numeric_only: bool = True):
11841184
"""
11851185
Compute mean of groups, excluding missing values.
11861186
1187+
Parameters
1188+
----------
1189+
numeric_only : bool, default True
1190+
Include only float, int, boolean columns. If None, will attempt to use
1191+
everything, then use only numeric data.
1192+
11871193
Returns
11881194
-------
11891195
pandas.Series or pandas.DataFrame
@@ -1230,24 +1236,27 @@ def mean(self, numeric_only: bool = True):
12301236

12311237
@Substitution(name="groupby")
12321238
@Appender(_common_see_also)
1233-
def median(self, numeric_only=True, min_count=-1):
1239+
def median(self, numeric_only=True):
12341240
"""
12351241
Compute median of groups, excluding missing values.
12361242
12371243
For multiple groupings, the result index will be a MultiIndex
12381244
1245+
Parameters
1246+
----------
1247+
numeric_only : bool, default True
1248+
Include only float, int, boolean columns. If None, will attempt to use
1249+
everything, then use only numeric data.
1250+
12391251
Returns
12401252
-------
12411253
Series or DataFrame
12421254
Median of values within each group.
12431255
"""
12441256
return self._cython_agg_general(
12451257
"median",
1246-
alt=lambda x, axis: Series(x).median(
1247-
axis=axis, numeric_only=numeric_only, min_count=numeric_only
1248-
),
1258+
alt=lambda x, axis: Series(x).median(axis=axis, numeric_only=numeric_only),
12491259
numeric_only=numeric_only,
1250-
min_count=min_count,
12511260
)
12521261

12531262
@Substitution(name="groupby")

0 commit comments

Comments
 (0)