We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d1b18d commit 057a8f3Copy full SHA for 057a8f3
doc/source/whatsnew/v0.24.0.txt
@@ -440,7 +440,7 @@ Datetimelike
440
Timedelta
441
^^^^^^^^^
442
443
-- Bug in :class:`DataFrame` with ``dtype='datetime64[ns]'`` when adding :class:`Timedelta` (:issue:`22007`)
+- Bug in :class:`DataFrame` with ``dtype='datetime64[ns]'`` when adding :class:`Timedelta` (:issue:`22005`)
444
-
445
446
pandas/tests/frame/test_arithmetic.py
@@ -219,6 +219,7 @@ def test_df_sub_datetime64_not_ns(self):
219
np.timedelta64(1, 'D')
220
])
221
def test_timestamp_df_add_timedelta(self, other):
222
+ # GH 22005
223
expected = pd.DataFrame([pd.Timestamp('2018-01-02')])
224
result = pd.DataFrame([pd.Timestamp('2018-01-01')]) + other
225
tm.assert_frame_equal(result, expected)
0 commit comments