From 864877c313d026ea5664570741a328324064f77c Mon Sep 17 00:00:00 2001 From: Andrew Williams <56925856+AndrewWilliams3142@users.noreply.github.com> Date: Tue, 26 May 2020 20:03:24 +0100 Subject: [PATCH] Corrcov typo fix (#4096) * fixing typo in corr, cov docstrings * reverted accidental changes in dataset.chunk() * pep8 --- xarray/core/computation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xarray/core/computation.py b/xarray/core/computation.py index 6ac4f74c3a6..5e172ea29ab 100644 --- a/xarray/core/computation.py +++ b/xarray/core/computation.py @@ -1108,7 +1108,7 @@ def cov(da_a, da_b, dim=None, ddof=1): Coordinates: * space (space) >> da_a = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]), + >>> da_b = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]), ... dims=("space", "time"), ... coords=[('space', ['IA', 'IL', 'IN']), ... ('time', pd.date_range("2000-01-01", freq="1D", periods=3))]) @@ -1177,7 +1177,7 @@ def corr(da_a, da_b, dim=None): Coordinates: * space (space) >> da_a = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]), + >>> da_b = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]), ... dims=("space", "time"), ... coords=[('space', ['IA', 'IL', 'IN']), ... ('time', pd.date_range("2000-01-01", freq="1D", periods=3))])