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
bast and wmvanvliet authored Oct 27, 2024
1 parent a3f20c7 commit 4a71b61
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 @@ -378,7 +378,7 @@ Exercises 2

.. challenge:: Exercises: Xarray-2

Let's change from clmate science to finance for this example. We assume we want to put the stock prices and trading volumes of three companies over ten days in one dataset. Create an Xarray Dataset that uses time and company as dimensions and contains two DataArrays: ``stock_price`` and ``trading_volume``. You can choose the values for the stock prices and trading volumes yourself. As a last thing, add the currency of the stock prices as an attribute to the Dataset.
Let's change from climate science to finance for this example. Put the stock prices and trading volumes of three companies over ten days in one dataset. Create an Xarray Dataset that uses time and company as dimensions and contains two DataArrays: ``stock_price`` and ``trading_volume``. You can choose the values for the stock prices and trading volumes yourself. As a last thing, add the currency of the stock prices as an attribute to the Dataset.

.. solution:: Solutions: Xarray-2

Expand Down

0 comments on commit 4a71b61

Please sign in to comment.