@@ -1005,7 +1005,6 @@ def asfreq(self, fill_value=None):
1005
1005
return self ._upsample ("asfreq" , fill_value = fill_value )
1006
1006
1007
1007
@final
1008
- @doc (GroupBy .sum )
1009
1008
def sum (
1010
1009
self ,
1011
1010
numeric_only : bool = False ,
@@ -1030,6 +1029,24 @@ def sum(
1030
1029
The required number of valid values to perform the operation. If fewer
1031
1030
than ``min_count`` non-NA values are present the result will be NA.
1032
1031
1032
+ skipna : bool, default True
1033
+ Exclude NA/null values when computing the result.
1034
+
1035
+ engine : str, default None
1036
+ * ``'cython'`` : Runs rolling apply through C-extensions from cython.
1037
+ * ``'numba'`` : Runs rolling apply through JIT compiled code from numba.
1038
+ Only available when ``raw`` is set to ``True``.
1039
+ * ``None`` : Defaults to ``'cython'``
1040
+ or globally setting ``compute.use_numba``
1041
+
1042
+ engine_kwargs : dict, default None
1043
+ * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
1044
+ * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
1045
+ and ``parallel`` dictionary keys. The values must either be ``True`` or
1046
+ ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
1047
+ ``{{'nopython': True, 'nogil': False, 'parallel': False}}`` and will be
1048
+ applied to both the ``func`` and the ``apply`` groupby aggregation.
1049
+
1033
1050
Returns
1034
1051
-------
1035
1052
Series or DataFrame
@@ -1064,7 +1081,6 @@ def sum(
1064
1081
)
1065
1082
1066
1083
@final
1067
- @doc (GroupBy .prod )
1068
1084
def prod (self , numeric_only : bool = False , min_count : int = 0 , skipna : bool = True ):
1069
1085
"""
1070
1086
Compute prod of group values.
@@ -1082,6 +1098,9 @@ def prod(self, numeric_only: bool = False, min_count: int = 0, skipna: bool = Tr
1082
1098
The required number of valid values to perform the operation. If fewer
1083
1099
than ``min_count`` non-NA values are present the result will be NA.
1084
1100
1101
+ skipna : bool, default True
1102
+ Exclude NA/null values when computing the result.
1103
+
1085
1104
Returns
1086
1105
-------
1087
1106
Series or DataFrame
@@ -1111,7 +1130,6 @@ def prod(self, numeric_only: bool = False, min_count: int = 0, skipna: bool = Tr
1111
1130
)
1112
1131
1113
1132
@final
1114
- @doc (GroupBy .min )
1115
1133
def min (
1116
1134
self ,
1117
1135
numeric_only : bool = False ,
@@ -1156,7 +1174,6 @@ def min(
1156
1174
)
1157
1175
1158
1176
@final
1159
- @doc (GroupBy .max )
1160
1177
def max (
1161
1178
self ,
1162
1179
numeric_only : bool = False ,
@@ -1234,17 +1251,6 @@ def median(
1234
1251
return self ._downsample ("median" , numeric_only = numeric_only , skipna = skipna )
1235
1252
1236
1253
@final
1237
- @doc (GroupBy .any )
1238
- def any (self , skipna : bool = True ):
1239
- return self ._downsample ("any" , skipna = skipna )
1240
-
1241
- @final
1242
- @doc (GroupBy .all )
1243
- def all (self , skipna : bool = True ):
1244
- return self ._downsample ("all" , skipna = skipna )
1245
-
1246
- @final
1247
- @doc (GroupBy .mean )
1248
1254
def mean (
1249
1255
self ,
1250
1256
numeric_only : bool = False ,
@@ -1264,6 +1270,26 @@ def mean(
1264
1270
1265
1271
numeric_only now defaults to ``False``.
1266
1272
1273
+ skipna : bool, default True
1274
+ Exclude NA/null values when computing the result.
1275
+
1276
+ engine : str, default None
1277
+ * ``'cython'`` : Runs the operation through C-extensions from cython.
1278
+ * ``'numba'`` : Runs the operation through JIT compiled code from numba.
1279
+ * ``None`` : Defaults to ``'cython'`` or globally setting
1280
+ ``compute.use_numba``
1281
+
1282
+ .. versionadded:: 1.4.0
1283
+
1284
+ engine_kwargs : dict, default None
1285
+ * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
1286
+ * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
1287
+ and ``parallel`` dictionary keys. The values must either be ``True`` or
1288
+ ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
1289
+ ``{{'nopython': True, 'nogil': False, 'parallel': False}}``
1290
+
1291
+ .. versionadded:: 1.4.0
1292
+
1267
1293
Returns
1268
1294
-------
1269
1295
DataFrame or Series
@@ -1298,7 +1324,6 @@ def mean(
1298
1324
)
1299
1325
1300
1326
@final
1301
- @doc (GroupBy .std )
1302
1327
def std (
1303
1328
self ,
1304
1329
ddof : int = 1 ,
@@ -1314,6 +1339,24 @@ def std(
1314
1339
----------
1315
1340
ddof : int, default 1
1316
1341
Degrees of freedom.
1342
+
1343
+ engine : str, default None
1344
+ * ``'cython'`` : Runs the operation through C-extensions from cython.
1345
+ * ``'numba'`` : Runs the operation through JIT compiled code from numba.
1346
+ * ``None`` : Defaults to ``'cython'`` or globally setting
1347
+ ``compute.use_numba``
1348
+
1349
+ .. versionadded:: 1.4.0
1350
+
1351
+ engine_kwargs : dict, default None
1352
+ * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
1353
+ * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
1354
+ and ``parallel`` dictionary keys. The values must either be ``True`` or
1355
+ ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
1356
+ ``{{'nopython': True, 'nogil': False, 'parallel': False}}``
1357
+
1358
+ .. versionadded:: 1.4.0
1359
+
1317
1360
numeric_only : bool, default False
1318
1361
Include only `float`, `int` or `boolean` data.
1319
1362
@@ -1323,6 +1366,9 @@ def std(
1323
1366
1324
1367
numeric_only now defaults to ``False``.
1325
1368
1369
+ skipna : bool, default True
1370
+ Exclude NA/null values when computing the result.
1371
+
1326
1372
Returns
1327
1373
-------
1328
1374
DataFrame or Series
@@ -1359,7 +1405,6 @@ def std(
1359
1405
)
1360
1406
1361
1407
@final
1362
- @doc (GroupBy .var )
1363
1408
def var (
1364
1409
self ,
1365
1410
ddof : int = 1 ,
@@ -1376,6 +1421,23 @@ def var(
1376
1421
ddof : int, default 1
1377
1422
Degrees of freedom.
1378
1423
1424
+ engine : str, default None
1425
+ * ``'cython'`` : Runs the operation through C-extensions from cython.
1426
+ * ``'numba'`` : Runs the operation through JIT compiled code from numba.
1427
+ * ``None`` : Defaults to ``'cython'`` or globally setting
1428
+ ``compute.use_numba``
1429
+
1430
+ .. versionadded:: 1.4.0
1431
+
1432
+ engine_kwargs : dict, default None
1433
+ * For ``'cython'`` engine, there are no accepted ``engine_kwargs``
1434
+ * For ``'numba'`` engine, the engine can accept ``nopython``, ``nogil``
1435
+ and ``parallel`` dictionary keys. The values must either be ``True`` or
1436
+ ``False``. The default ``engine_kwargs`` for the ``'numba'`` engine is
1437
+ ``{{'nopython': True, 'nogil': False, 'parallel': False}}``
1438
+
1439
+ .. versionadded:: 1.4.0
1440
+
1379
1441
numeric_only : bool, default False
1380
1442
Include only `float`, `int` or `boolean` data.
1381
1443
@@ -1385,6 +1447,9 @@ def var(
1385
1447
1386
1448
numeric_only now defaults to ``False``.
1387
1449
1450
+ skipna : bool, default True
1451
+ Exclude NA/null values when computing the result.
1452
+
1388
1453
Returns
1389
1454
-------
1390
1455
DataFrame or Series
0 commit comments