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
BUG: Adds missing raises for numpy.timedelta64[M/Y] in pandas.Timedelta (#53421)
* adds raise for numpy Y and M conversion in Timedelta
* fix failing tests
* update raise lang
* alternative approach
* add missing periods
* switch to cimport
* add cython directive
* switch to inline cython directive
* remove unsupported td operation
* adds whatnew update
* remove whitespace
* adds test
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v2.1.0.rst
+1
Original file line number
Diff line number
Diff line change
@@ -368,6 +368,7 @@ Timedelta
368
368
^^^^^^^^^
369
369
- :meth:`TimedeltaIndex.map` with ``na_action="ignore"`` now works as expected (:issue:`51644`)
370
370
- Bug in :class:`TimedeltaIndex` division or multiplication leading to ``.freq`` of "0 Days" instead of ``None`` (:issue:`51575`)
371
+
- Bug in :class:`Timedelta` with Numpy timedelta64 objects not properly raising ``ValueError`` (:issue:`52806`)
371
372
- Bug in :meth:`Timedelta.round` with values close to the implementation bounds returning incorrect results instead of raising ``OutOfBoundsTimedelta`` (:issue:`51494`)
372
373
- Bug in :meth:`arrays.TimedeltaArray.map` and :meth:`TimedeltaIndex.map`, where the supplied callable operated array-wise instead of element-wise (:issue:`51977`)
0 commit comments