Skip to content

Commit a164271

Browse files
authored
DOC: restructured offset deprecation whatsnew (#56364)
1 parent fce7760 commit a164271

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

doc/source/whatsnew/v2.2.0.rst

+21-10
Original file line numberDiff line numberDiff line change
@@ -358,19 +358,30 @@ Other API changes
358358
Deprecations
359359
~~~~~~~~~~~~
360360

361-
Deprecate aliases ``M``, ``SM``, ``BM``, ``CBM``, ``Q``, ``BQ``, ``Y``, and ``BY`` in favour of ``ME``, ``SME``, ``BME``, ``CBME``, ``QE``, ``BQE``, ``YE``, and ``BYE`` for offsets
362-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
361+
Deprecate aliases ``M``, ``Q``, ``Y``, etc. in favour of ``ME``, ``QE``, ``YE``, etc. for offsets
362+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
363363

364364
Deprecated the following frequency aliases (:issue:`9586`):
365365

366-
- ``M`` (month end) has been renamed ``ME`` for offsets
367-
- ``SM`` (semi month end) has been renamed ``SME`` for offsets
368-
- ``BM`` (business month end) has been renamed ``BME`` for offsets
369-
- ``CBM`` (custom business month end) has been renamed ``CBME`` for offsets
370-
- ``Q`` (quarter end) has been renamed ``QE`` for offsets
371-
- ``BQ`` (business quarter end) has been renamed ``BQE`` for offsets
372-
- ``Y`` (year end) has been renamed ``YE`` for offsets
373-
- ``BY`` (business year end) has been renamed ``BYE`` for offsets
366+
+-------------------------------+------------------+------------------+
367+
|offsets |deprecated aliases|new aliases |
368+
+===============================+==================+==================+
369+
|:class:`MonthEnd` | ``M`` | ``ME`` |
370+
+-------------------------------+------------------+------------------+
371+
|:class:`BusinessMonthEnd` | ``BM`` | ``BME`` |
372+
+-------------------------------+------------------+------------------+
373+
|:class:`SemiMonthEnd` | ``SM`` | ``SME`` |
374+
+-------------------------------+------------------+------------------+
375+
|:class:`CustomBusinessMonthEnd`| ``CBM`` | ``CBME`` |
376+
+-------------------------------+------------------+------------------+
377+
|:class:`QuarterEnd` | ``Q`` | ``QE`` |
378+
+-------------------------------+------------------+------------------+
379+
|:class:`BQuarterEnd` | ``BQ`` | ``BQE`` |
380+
+-------------------------------+------------------+------------------+
381+
|:class:`YearEnd` | ``Y`` | ``YE`` |
382+
+-------------------------------+------------------+------------------+
383+
|:class:`BYearEnd` | ``BY`` | ``BYE`` |
384+
+-------------------------------+------------------+------------------+
374385

375386
For example:
376387

0 commit comments

Comments
 (0)