Skip to content

Commit 04550e6

Browse files
RiulinchenLorendcherianpre-commit-ci[bot]
authored
Make documentation of DataArray.where clearer (#7955)
* Make doc of DataArray.where clearer * Update xarray/core/common.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Loren <[email protected]> Co-authored-by: Deepak Cherian <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8c21376 commit 04550e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xarray/core/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,9 @@ def where(
10661066
) -> T_DataWithCoords:
10671067
"""Filter elements from this object according to a condition.
10681068
1069+
Returns elements from 'DataArray', where 'cond' is True,
1070+
otherwise fill in 'other'.
1071+
10691072
This operation follows the normal broadcasting and alignment rules that
10701073
xarray uses for binary arithmetic.
10711074

0 commit comments

Comments
 (0)