Skip to content

Commit aec1232

Browse files
Update content/xarray.rst
Co-authored-by: Marijn van Vliet <[email protected]>
1 parent f09bb39 commit aec1232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/xarray.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Xarray also provides a wide range of aggregation methods such as ``sum()``, ``me
230230
Let's take a look at a concrete example and compare it to NumPy. We will calculate the max temperature over the 'isobaric1' dimension at a specific value for x: ::
231231

232232
>>> # Xarray
233-
>>> ds['Temperature_isobaric'].sel(x='-3259.5447').max(dim='isobaric1').values
233+
>>> ds['Temperature_isobaric'].sel(x='-3259.5447').max(dim='isobaric1')
234234
array([[294.11 , 294.14124, 294.1256 , 294.0475 , 293.90686, 293.6256 ,
235235
...,
236236
276.46936, 276.59436, 276.6881 , 276.78186, 276.82874]],

0 commit comments

Comments
 (0)