@@ -158,38 +158,6 @@ array, but rather an ``ExtensionArray``:
158
158
This is the same behavior as ``Series.values`` for categorical data. See
159
159
:ref:`whatsnew_0240.api_breaking.interval_values` for more.
160
160
161
- .. _whatsnew_0240.enhancements.calendarday:
162
-
163
- :class:`Day` and associated frequency alias ``'D'`` were documented to represent
164
- a calendar day; however, arithmetic and operations with :class:`Day` consistently
165
- respected absolute time (i.e. ```Day(n)`` and acted identically to ```Timedelta(days=n)``).
166
-
167
- :class:`CalendarDay` and associated frequency alias ``'CD'`` are now available
168
- and respect calendar day arithmetic. (:issue:`22274`, :issue:`20596`, :issue:`16980`, :issue:`8774`)
169
-
170
- Addition with :class:`CalendarDay` across a daylight savings time transition:
171
-
172
- .. ipython:: python
173
-
174
- ts = pd.Timestamp('2016-10-30 00:00:00', tz='Europe/Helsinki')
175
- ts + pd.offsets.Day(1)
176
- ts + pd.offsets.CalendarDay(1)
177
-
178
- However, if the resulting arithmetic results in a non-existent or ambiguous
179
- time, and error will raise
180
-
181
- .. ipython:: python
182
-
183
- Timestamp("2018-11-03 01:00:00", tz='US/Pacific') + CalendarDay(1)
184
-
185
- The ``'CD'` frequency alias can be used with :func:`date_range` to create
186
- a sequence of dates that are separate by a calendar day.
187
-
188
- .. ipython:: python
189
-
190
- ts = pd.Timestamp('2016-10-30 00:00:00', tz='Europe/Helsinki')
191
- pd.date_range(start=ts, freq='CD', periods=3)
192
- pd.date_range(start=ts, freq='D', periods=3)
193
161
194
162
.. _whatsnew_0240.enhancements.other:
195
163
0 commit comments