Skip to content

Commit a66d5b5

Browse files
authored
Fix doctests (#10230)
1 parent 72ffff5 commit a66d5b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray/core/dataarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6857,12 +6857,12 @@ def groupby(
68576857
>>> da
68586858
<xarray.DataArray (time: 1827)> Size: 15kB
68596859
array([0.000e+00, 1.000e+00, 2.000e+00, ..., 1.824e+03, 1.825e+03,
6860-
1.826e+03])
6860+
1.826e+03], shape=(1827,))
68616861
Coordinates:
68626862
* time (time) datetime64[ns] 15kB 2000-01-01 2000-01-02 ... 2004-12-31
68636863
>>> da.groupby("time.dayofyear") - da.groupby("time.dayofyear").mean("time")
68646864
<xarray.DataArray (time: 1827)> Size: 15kB
6865-
array([-730.8, -730.8, -730.8, ..., 730.2, 730.2, 730.5])
6865+
array([-730.8, -730.8, -730.8, ..., 730.2, 730.2, 730.5], shape=(1827,))
68666866
Coordinates:
68676867
* time (time) datetime64[ns] 15kB 2000-01-01 2000-01-02 ... 2004-12-31
68686868
dayofyear (time) int64 15kB 1 2 3 4 5 6 7 8 ... 360 361 362 363 364 365 366

0 commit comments

Comments
 (0)