@@ -1184,6 +1184,12 @@ def mean(self, numeric_only: bool = True):
1184
1184
"""
1185
1185
Compute mean of groups, excluding missing values.
1186
1186
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
+
1187
1193
Returns
1188
1194
-------
1189
1195
pandas.Series or pandas.DataFrame
@@ -1230,24 +1236,27 @@ def mean(self, numeric_only: bool = True):
1230
1236
1231
1237
@Substitution (name = "groupby" )
1232
1238
@Appender (_common_see_also )
1233
- def median (self , numeric_only = True , min_count = - 1 ):
1239
+ def median (self , numeric_only = True ):
1234
1240
"""
1235
1241
Compute median of groups, excluding missing values.
1236
1242
1237
1243
For multiple groupings, the result index will be a MultiIndex
1238
1244
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
+
1239
1251
Returns
1240
1252
-------
1241
1253
Series or DataFrame
1242
1254
Median of values within each group.
1243
1255
"""
1244
1256
return self ._cython_agg_general (
1245
1257
"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 ),
1249
1259
numeric_only = numeric_only ,
1250
- min_count = min_count ,
1251
1260
)
1252
1261
1253
1262
@Substitution (name = "groupby" )
0 commit comments