Skip to content

Commit

Permalink
Update groupby.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Nov 6, 2021
1 parent 3df1015 commit c4c4023
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions asv_bench/benchmarks/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class GroupBy:
def setup(self, *args, **kwargs):
self.ds1d = xr.Dataset(
{
"a": xr.DataArray(np.r_[np.arange(500.0), np.arange(500.0)]),
"b": xr.DataArray(np.arange(1000.0)),
"a": xr.DataArray(np.r_[np.arange(300), np.arange(300)]),
"b": xr.DataArray(np.arange(500)),
}
)
self.ds2d = self.ds1d.expand_dims(z=10)
Expand Down Expand Up @@ -74,7 +74,7 @@ def time_agg_small_num_groups(self, method, ndim):
@parameterized(["method", "ndim"], [("sum", "mean"), (1, 2)])
def time_agg_large_num_groups(self, method, ndim):
ds = getattr(self, f"ds{ndim}d")
getattr(ds.resample(time="6H"), method)()
getattr(ds.resample(time="12H"), method)()


class ResampleDask(Resample):
Expand Down

0 comments on commit c4c4023

Please sign in to comment.