Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 'date_time_charts'
  • Loading branch information
yvonnefroehlich committed Sep 23, 2024
commit a96263803c0ef2d7561b10c278ad7d029569a4ae
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 PyData 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 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.

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