Skip to content

Commit

Permalink
Udpate explanation for xarrayDataArray
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonnefroehlich committed Sep 23, 2024
1 parent e71fa6b commit 2773524
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/tutorials/advanced/date_time_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@
#
# In this example, instead of using a list of :class:`pandas.DatetimeIndex` objects,
# ``x`` is initialized as an :class:`xarray.DataArray` object. This object provides a
# wrapper around regular scientific Python formats. It also allows the data to have
# labeled dimensions while supporting operations that use various pieces of metadata.
# The following code uses :func:`pandas.date_range` to fill the DataArray with data,
# but this is not essential for the creation of a valid DataArray.
# wrapper around numpy ndarrays. It also allows the data to have labeled dimensions
# while supporting operations that use various pieces of metadata. The following code
# uses :func:`pandas.date_range` to fill the DataArray with data, but this is not
# essential for the creation of a valid DataArray.

x = xr.DataArray(data=pd.date_range(start="2020-01-01", periods=4, freq="Q"))
y = [4, 7, 5, 6]
Expand Down

0 comments on commit 2773524

Please sign in to comment.