Skip to content

Commit

Permalink
Update content/xarray.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Marijn van Vliet <[email protected]>
  • Loading branch information
gregordecristoforo and wmvanvliet authored Oct 23, 2024
1 parent cd63b31 commit a3f20c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/xarray.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ We can still access the same data by index using the ``.isel()`` method: ::
Grib1_Level_Desc: Isobaric surface


Xarray also provides a wide range of aggregation methods such as ``sum()``, ``mean()``, ``median()``, ``min()``, and ``max()``. We can use these methods to aggregate data over one or multiple dimensions: ::
A ``DataArray`` provides a lot of the functionality we expect from Numpy arrays, such as ``sum()``, ``mean()``, ``median()``, ``min()``, and ``max()`` that we can use these methods to aggregate data over one or multiple dimensions: ::

>>> # Calculate the mean over the 'isobaric1' dimension
>>> ds['Temperature_isobaric'].mean(dim='isobaric1')
Expand Down

0 comments on commit a3f20c7

Please sign in to comment.