Skip to content

Commit 864877c

Browse files
Corrcov typo fix (#4096)
* fixing typo in corr, cov docstrings * reverted accidental changes in dataset.chunk() * pep8
1 parent d1f7cb8 commit 864877c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray/core/computation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ def cov(da_a, da_b, dim=None, ddof=1):
11081108
Coordinates:
11091109
* space (space) <U2 'IA' 'IL' 'IN'
11101110
* time (time) datetime64[ns] 2000-01-01 2000-01-02 2000-01-03
1111-
>>> da_a = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]),
1111+
>>> da_b = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]),
11121112
... dims=("space", "time"),
11131113
... coords=[('space', ['IA', 'IL', 'IN']),
11141114
... ('time', pd.date_range("2000-01-01", freq="1D", periods=3))])
@@ -1177,7 +1177,7 @@ def corr(da_a, da_b, dim=None):
11771177
Coordinates:
11781178
* space (space) <U2 'IA' 'IL' 'IN'
11791179
* time (time) datetime64[ns] 2000-01-01 2000-01-02 2000-01-03
1180-
>>> da_a = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]),
1180+
>>> da_b = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]),
11811181
... dims=("space", "time"),
11821182
... coords=[('space', ['IA', 'IL', 'IN']),
11831183
... ('time', pd.date_range("2000-01-01", freq="1D", periods=3))])

0 commit comments

Comments
 (0)