Skip to content

Commit 6cd50cc

Browse files
pmallasmax-sixty
authored andcommitted
Update where docstring to make return value type more clear (#3408)
* Update where docstring to make return value type more clear The where docstring was a little confusing to me. I misunderstood "Same type as caller' to mean the values in the xarray not the xarray itself. I think this small change will clean it up for most users. Thanks. * Update xarray/core/common.py Co-Authored-By: Maximilian Roos <[email protected]>
1 parent 55b1ac0 commit 6cd50cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ def where(self, cond, other=dtypes.NA, drop: bool = False):
10691069
10701070
Returns
10711071
-------
1072-
Same type as caller.
1072+
Same xarray type as caller, with dtype float64.
10731073
10741074
Examples
10751075
--------

0 commit comments

Comments
 (0)