Skip to content

Commit 71ef3d2

Browse files
BUG: Moved release note and changed test pandas-dev#43784
1 parent ff0bd57 commit 71ef3d2

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

doc/source/whatsnew/v1.5.0.rst

-1
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,6 @@ Datetimelike
995995
- Bug in :class:`Timestamp` with an integer or float value and ``unit="Y"`` or ``unit="M"`` giving slightly-wrong results (:issue:`47266`)
996996
- Bug in :class:`.DatetimeArray` construction when passed another :class:`.DatetimeArray` and ``freq=None`` incorrectly inferring the freq from the given array (:issue:`47296`)
997997
- Bug when adding a :class:`DateOffset` to a :class:`Series` would not add the ``nanoseconds`` field (:issue:`47856`)
998-
- Bug where adding a :class:`DateOffset` to a :class:`DatetimeIndex` or :class:`Series` over a Daylight Savings Time boundary would produce an incorrect result (:issue:`43784`)
999998
- Bug in :func:`to_datetime` where ``OutOfBoundsDatetime`` would be thrown even if ``errors=coerce`` if there were more than 50 rows (:issue:`45319`)
1000999
-
10011000

doc/source/whatsnew/v1.6.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ Categorical
127127
Datetimelike
128128
^^^^^^^^^^^^
129129
- Bug in :func:`pandas.infer_freq`, raising ``TypeError`` when inferred on :class:`RangeIndex` (:issue:`47084`)
130+
- Bug where adding a :class:`DateOffset` to a :class:`DatetimeIndex` or :class:`Series` over a Daylight Savings Time boundary would produce an incorrect result (:issue:`43784`)
130131
-
131132

132133
Timedelta

pandas/tests/tseries/offsets/test_dst.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ def test_series_dst_addition():
251251
[Timestamp("2020-10-26 00:00:00+01:00"), Timestamp("2017-03-13 00:00:00-07:00")]
252252
)
253253

254-
tm.assert_series_equal((startdates + offset1), expected1)
254+
result1 = startdates + offset1
255+
result2 = startdates + offset2
255256

256-
tm.assert_series_equal((startdates + offset2), expected2)
257+
tm.assert_series_equal(result1, expected1)
258+
259+
tm.assert_series_equal(result2, expected2)

0 commit comments

Comments
 (0)