We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 006048c commit 5f9478fCopy full SHA for 5f9478f
asv_bench/benchmarks/groupby.py
@@ -369,6 +369,21 @@ def time_category_size(self):
369
self.draws.groupby(self.cats).size()
370
371
372
+class Shift:
373
+ def setup(self):
374
+ N = 18
375
+ self.df = DataFrame({
376
+ 'g' : ['a', 'b'] * 9,
377
+ 'v' : list(range(N))
378
+ })
379
+
380
+ def time_defaults(self):
381
+ self.df.groupby('g').shift()
382
383
+ def time_fill_value(self):
384
+ self.df.groupby('g').shift(fill_value=99)
385
386
387
class FillNA:
388
def setup(self):
389
N = 100
0 commit comments