@@ -443,7 +443,7 @@ class GroupByMethods:
443
443
"var" ,
444
444
],
445
445
["direct" , "transformation" ],
446
- [1 , 2 , 5 , 10 ],
446
+ [1 , 5 ],
447
447
]
448
448
449
449
def setup (self , dtype , method , application , ncols ):
@@ -455,6 +455,7 @@ def setup(self, dtype, method, application, ncols):
455
455
raise NotImplementedError
456
456
457
457
if application == "transformation" and method in [
458
+ "describe" ,
458
459
"head" ,
459
460
"tail" ,
460
461
"unique" ,
@@ -464,7 +465,12 @@ def setup(self, dtype, method, application, ncols):
464
465
# DataFrameGroupBy doesn't have these methods
465
466
raise NotImplementedError
466
467
467
- ngroups = 1000
468
+ if method == "describe" :
469
+ ngroups = 20
470
+ elif method in ["mad" , "skew" ]:
471
+ ngroups = 100
472
+ else :
473
+ ngroups = 1000
468
474
size = ngroups * 2
469
475
rng = np .arange (ngroups ).reshape (- 1 , 1 )
470
476
rng = np .broadcast_to (rng , (len (rng ), ncols ))
@@ -491,9 +497,6 @@ def setup(self, dtype, method, application, ncols):
491
497
cols = cols [0 ]
492
498
493
499
if application == "transformation" :
494
- if method == "describe" :
495
- raise NotImplementedError
496
-
497
500
self .as_group_method = lambda : df .groupby ("key" )[cols ].transform (method )
498
501
self .as_field_method = lambda : df .groupby (cols )["key" ].transform (method )
499
502
else :
0 commit comments