You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change fixes a long-standing bug in :func:`date_range` (:issue:`51716`, :issue:`35388`), but causes several
328
+
small behavior differences as collateral:
329
+
330
+
- ``pd.offsets.Day(n)`` no longer compares as equal to ``pd.offsets.Hour(24*n)``
331
+
- :class:`offsets.Day` no longer supports division
332
+
- :class:`Timedelta` no longer accepts :class:`Day` objects as inputs
333
+
- :meth:`tseries.frequencies.to_offset` on a :class:`Timedelta` object returns a :class:`offsets.Hour` object in cases where it used to return a :class:`Day` object.
334
+
- Adding or subtracting a scalar from a timezone-aware :class:`DatetimeIndex` with a :class:`Day` ``freq`` no longer preserves that ``freq`` attribute.
335
+
- Adding or subtracting a :class:`Day` with a :class:`Timedelta` is no longer supported.
336
+
- Adding or subtracting a :class:`Day` offset to a timezone-aware :class:`Timestamp` or datetime-like may lead to an ambiguous or non-existent time, which will raise.
337
+
303
338
.. _whatsnew_300.api_breaking.deps:
304
339
305
340
Increased minimum version for Python
@@ -732,6 +767,7 @@ Timedelta
732
767
Timezones
733
768
^^^^^^^^^
734
769
- Bug in :meth:`DatetimeIndex.union`, :meth:`DatetimeIndex.intersection`, and :meth:`DatetimeIndex.symmetric_difference` changing timezone to UTC when merging two DatetimeIndex objects with the same timezone but different units (:issue:`60080`)
770
+
- Bug in :meth:`Series.dt.tz_localize` with a timezone-aware :class:`ArrowDtype` incorrectly converting to UTC when ``tz=None`` (:issue:`61780`)
0 commit comments