From 971322921de5fba6b032237aff3eb5d2818bfd00 Mon Sep 17 00:00:00 2001 From: Natalia Mokeeva Date: Wed, 6 Dec 2023 18:29:58 +0100 Subject: [PATCH] replace text blocks with a table depr/new aliases --- doc/source/whatsnew/v2.2.0.rst | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index d2a284ea545a1..67b4052b386c0 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -358,19 +358,30 @@ Other API changes Deprecations ~~~~~~~~~~~~ -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 -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Deprecate aliases ``M``, ``Q``, ``Y``, etc. in favour of ``ME``, ``QE``, ``YE``, etc. for offsets +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Deprecated the following frequency aliases (:issue:`9586`): -- ``M`` (month end) has been renamed ``ME`` for offsets -- ``SM`` (semi month end) has been renamed ``SME`` for offsets -- ``BM`` (business month end) has been renamed ``BME`` for offsets -- ``CBM`` (custom business month end) has been renamed ``CBME`` for offsets -- ``Q`` (quarter end) has been renamed ``QE`` for offsets -- ``BQ`` (business quarter end) has been renamed ``BQE`` for offsets -- ``Y`` (year end) has been renamed ``YE`` for offsets -- ``BY`` (business year end) has been renamed ``BYE`` for offsets ++-------------------------------+------------------+------------------+ +|offsets |deprecated aliases|new aliases | ++===============================+==================+==================+ +|:class:`MonthEnd` | ``M`` | ``ME`` | ++-------------------------------+------------------+------------------+ +|:class:`BusinessMonthEnd` | ``BM`` | ``BME`` | ++-------------------------------+------------------+------------------+ +|:class:`SemiMonthEnd` | ``SM`` | ``SME`` | ++-------------------------------+------------------+------------------+ +|:class:`CustomBusinessMonthEnd`| ``CBM`` | ``CBME`` | ++-------------------------------+------------------+------------------+ +|:class:`QuarterEnd` | ``Q`` | ``QE`` | ++-------------------------------+------------------+------------------+ +|:class:`BQuarterEnd` | ``BQ`` | ``BQE`` | ++-------------------------------+------------------+------------------+ +|:class:`YearEnd` | ``Y`` | ``YE`` | ++-------------------------------+------------------+------------------+ +|:class:`BYearEnd` | ``BY`` | ``BYE`` | ++-------------------------------+------------------+------------------+ For example: