File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1437,13 +1437,14 @@ def groupby_reduce(
1437
1437
and is identical to xarray's default strategy.
1438
1438
engine : {"flox", "numpy", "numba"}, optional
1439
1439
Algorithm to compute the groupby reduction on non-dask arrays and on each dask chunk:
1440
+ * ``"numpy"``:
1441
+ Use the vectorized implementations in ``numpy_groupies.aggregate_numpy``.
1442
+ This is the default choice because it works for most array types.
1440
1443
* ``"flox"``:
1441
1444
Use an internal implementation where the data is sorted so that
1442
1445
all members of a group occur sequentially, and then numpy.ufunc.reduceat
1443
1446
is to used for the reduction. This will fall back to ``numpy_groupies.aggregate_numpy``
1444
1447
for a reduction that is not yet implemented.
1445
- * ``"numpy"``:
1446
- Use the vectorized implementations in ``numpy_groupies.aggregate_numpy``.
1447
1448
* ``"numba"``:
1448
1449
Use the implementations in ``numpy_groupies.aggregate_numba``.
1449
1450
reindex : bool, optional
Original file line number Diff line number Diff line change @@ -128,13 +128,14 @@ def xarray_reduce(
128
128
and is identical to xarray's default strategy.
129
129
engine : {"flox", "numpy", "numba"}, optional
130
130
Algorithm to compute the groupby reduction on non-dask arrays and on each dask chunk:
131
+ * ``"numpy"``:
132
+ Use the vectorized implementations in ``numpy_groupies.aggregate_numpy``.
133
+ This is the default choice because it works for other array types.
131
134
* ``"flox"``:
132
135
Use an internal implementation where the data is sorted so that
133
136
all members of a group occur sequentially, and then numpy.ufunc.reduceat
134
137
is to used for the reduction. This will fall back to ``numpy_groupies.aggregate_numpy``
135
138
for a reduction that is not yet implemented.
136
- * ``"numpy"``:
137
- Use the vectorized implementations in ``numpy_groupies.aggregate_numpy``.
138
139
* ``"numba"``:
139
140
Use the implementations in ``numpy_groupies.aggregate_numba``.
140
141
keep_attrs : bool, optional
You can’t perform that action at this time.
0 commit comments