diff --git a/doc/indexing.rst b/doc/indexing.rst index af8e44fb80b..58064582354 100644 --- a/doc/indexing.rst +++ b/doc/indexing.rst @@ -339,7 +339,7 @@ MATLAB, or after using the :py:func:`numpy.ix_` helper: coords={"x": [0, 1, 2], "y": ["a", "b", "c", "d"]}, ) da - da[[0, 1], [1, 1]] + da[[0, 2, 2], [1, 3]] For more flexibility, you can supply :py:meth:`~xarray.DataArray` objects as indexers. diff --git a/doc/whats-new.rst b/doc/whats-new.rst index d8b1fc2fba9..f624e89019d 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -99,6 +99,8 @@ Documentation By `Sander van Rijn `_ - Update the contributing guide to use merges instead of rebasing and state that we squash-merge. (:pull:`4355`) By `Justus Magin `_. +- Updated Vectorized Indexing to a clearer example. + By `Maximilian Roos `_ Internal Changes ~~~~~~~~~~~~~~~~