From 6cd50cc550665e9ea7feab6395052b1d72dbcda3 Mon Sep 17 00:00:00 2001 From: pmallas <6051395+pmallas@users.noreply.github.com> Date: Thu, 17 Oct 2019 10:15:47 -0400 Subject: [PATCH] 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 <5635139+max-sixty@users.noreply.github.com> --- xarray/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/core/common.py b/xarray/core/common.py index a762f7fbed9..d23428eca62 100644 --- a/xarray/core/common.py +++ b/xarray/core/common.py @@ -1069,7 +1069,7 @@ def where(self, cond, other=dtypes.NA, drop: bool = False): Returns ------- - Same type as caller. + Same xarray type as caller, with dtype float64. Examples --------