Skip to content

Commit f3793b9

Browse files
committed
Docs edt
1 parent c72bd32 commit f3793b9

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

docs/source/xarray.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,4 @@ ds.groupby_bins("lon", bins=[0, 10, 20]).mean(method="map-reduce")
1111
ds.resample(time="M").mean(method="blockwise")
1212
```
1313

14-
Xarray's GroupBy operations are currently limited:
15-
16-
1. One can only group by a single variable.
17-
1. When grouping by a dask array, that array will be computed to discover the unique group labels, and their locations
18-
19-
These limitations can be avoided by using {py:func}`flox.xarray.xarray_reduce` which allows grouping by multiple variables, lazy grouping by dask variables,
20-
as well as an arbitrary combination of categorical grouping and binning. For example,
21-
22-
```python
23-
flox.xarray.xarray_reduce(
24-
ds,
25-
ds.time.dt.month,
26-
ds.lon,
27-
func="mean",
28-
expected_groups=[None, [0, 10, 20]],
29-
isbin=[False, True],
30-
method="map-reduce",
31-
)
32-
```
14+
{py:func}`flox.xarray.xarray_reduce` used to provide extra functionality, but now Xarray's GroupBy object has been upgraded to match those capabilities with better API!

0 commit comments

Comments
 (0)