Skip to content
forked from pydata/xarray

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Dec 2, 2022
1 parent 004a674 commit 1ca5b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xarray/core/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,8 @@ def _flox_reduce(
# We can fake that here by forcing min_count=1.
# note min_count makes no sense in the xarray world
# as a kwarg for count, so this should be OK
kwargs["min_count"] = 1
kwargs.setdefault("fill_value", np.nan)
kwargs.setdefault("min_count", 1)

output_index = self._get_output_index()
result = xarray_reduce(
Expand Down

0 comments on commit 1ca5b90

Please sign in to comment.