Skip to content

Commit 894b26e

Browse files
authored
Fix doctests (#4439)
1 parent 0af238c commit 894b26e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xarray/core/combine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,8 @@ def combine_by_coords(
711711
<xarray.Dataset>
712712
Dimensions: (x: 3, y: 4)
713713
Coordinates:
714-
* x (x) int64 10 20 30
715714
* y (y) int64 0 1 2 3
715+
* x (x) int64 10 20 30
716716
Data variables:
717717
temperature (y, x) float64 10.98 14.3 12.06 10.9 ... 1.743 0.4044 16.65
718718
precipitation (y, x) float64 0.4376 0.8918 0.9637 ... 0.7992 0.4615 0.7805

xarray/core/groupby.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,8 @@ def quantile(
607607
array([[0.7, 4.2, 0.7, 1.5],
608608
[6.5, 7.3, 2.6, 1.9]])
609609
Coordinates:
610-
quantile float64 0.0
611610
* y (y) int64 1 1 2 2
611+
quantile float64 0.0
612612
* x (x) int64 0 1
613613
>>> ds.groupby("y").quantile(0, dim=...)
614614
<xarray.Dataset>
@@ -630,8 +630,8 @@ def quantile(
630630
[2.6 , 2.6 , 2.6 ],
631631
[1.9 , 1.9 , 1.9 ]]])
632632
Coordinates:
633-
* quantile (quantile) float64 0.0 0.5 1.0
634633
* y (y) int64 1 1 2 2
634+
* quantile (quantile) float64 0.0 0.5 1.0
635635
* x (x) int64 0 1
636636
>>> ds.groupby("y").quantile([0, 0.5, 1], dim=...)
637637
<xarray.Dataset>

0 commit comments

Comments
 (0)