Skip to content

Commit c56dd94

Browse files
committed
Update groupby.py
1 parent ff64195 commit c56dd94

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

asv_bench/benchmarks/groupby.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ class GroupByDask(GroupBy):
3636
def setup(self, *args, **kwargs):
3737
requires_dask()
3838
super().setup(**kwargs)
39-
self.ds1d = self.ds1d.sel(dim_0=slice(self.n * 0.5)).chunk({"dim_0": 50})
40-
self.ds2d = self.ds2d.sel(dim_0=slice(self.n * 0.5)).chunk(
41-
{"dim_0": 50, "z": 4}
42-
)
39+
self.ds1d = self.ds1d.sel(dim_0=slice(self.n // 2)).chunk({"dim_0": 50})
40+
self.ds2d = self.ds2d.sel(dim_0=slice(self.n // 2)).chunk({"dim_0": 50, "z": 4})
4341

4442

4543
class GroupByDataFrame(GroupBy):

0 commit comments

Comments
 (0)