From 01441b5afa920d48d807e6fe741eceb571113386 Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Wed, 24 Feb 2021 14:18:46 -0500 Subject: [PATCH 1/2] DOC: add xr import --- xarray/core/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/xarray/core/common.py b/xarray/core/common.py index db91ec85317..28999fd7332 100644 --- a/xarray/core/common.py +++ b/xarray/core/common.py @@ -1188,6 +1188,7 @@ def where(self, cond, other=dtypes.NA, drop: bool = False): Examples -------- + >>> import xarray as xr >>> import numpy as np >>> a = xr.DataArray(np.arange(25).reshape(5, 5), dims=("x", "y")) >>> a From e41bdffe81ed294fbc5cd75667d6154a9ab83719 Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Wed, 24 Feb 2021 16:33:13 -0500 Subject: [PATCH 2/2] DOC: remove imports --- xarray/core/common.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/xarray/core/common.py b/xarray/core/common.py index 28999fd7332..321bd632811 100644 --- a/xarray/core/common.py +++ b/xarray/core/common.py @@ -1188,8 +1188,6 @@ def where(self, cond, other=dtypes.NA, drop: bool = False): Examples -------- - >>> import xarray as xr - >>> import numpy as np >>> a = xr.DataArray(np.arange(25).reshape(5, 5), dims=("x", "y")) >>> a