Skip to content

Commit 627a881

Browse files
jwenfaispencerkclark
authored andcommitted
Quarter offset implemented (base is now latest pydata-master). (#2721)
* Quarter offset implemented (base is now latest pydata-master). * Fixed issues raised in review (#2721 (review)) * Updated whats-new.rst with info on quarter offset support. * Updated whats-new.rst with info on quarter offset support. * Update doc/whats-new.rst Co-Authored-By: jwenfai <[email protected]> * Added support for quarter frequencies when resampling CFTimeIndex. Less redundancy in CFTimeIndex resampling tests. * Removed normalization code (unnecessary for cftime_range) in cftime_offsets.py. Removed redundant lines in whats-new.rst. * Removed invalid option from _get_day_of_month docstring. Added tests back in that raises ValueError when resampling (base=24 when resampling to daily freq, e.g., '8D'). * Minor edits to docstrings/comments * lint
1 parent 612d390 commit 627a881

File tree

5 files changed

+558
-106
lines changed

5 files changed

+558
-106
lines changed

doc/whats-new.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ Enhancements
6868
- :py:meth:`pandas.Series.dropna` is now supported for a
6969
:py:class:`pandas.Series` indexed by a :py:class:`~xarray.CFTimeIndex`
7070
(:issue:`2688`). By `Spencer Clark <https://github.com/spencerkclark>`_.
71+
- :py:meth:`~xarray.cftime_range` now supports QuarterBegin and QuarterEnd offsets (:issue:`2663`).
72+
By `Jwen Fai Low <https://github.com/jwenfai>`_
7173
- :py:meth:`~xarray.open_dataset` now accepts a ``use_cftime`` argument, which
7274
can be used to require that ``cftime.datetime`` objects are always used, or
7375
never used when decoding dates encoded with a standard calendar. This can be
@@ -76,7 +78,7 @@ Enhancements
7678
serialization warnings raised if dates from a standard calendar are found to
7779
be outside the :py:class:`pandas.Timestamp`-valid range (:issue:`2754`). By
7880
`Spencer Clark <https://github.com/spencerkclark>`_.
79-
81+
8082
Bug fixes
8183
~~~~~~~~~
8284

0 commit comments

Comments
 (0)