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
Add DatetimeIndex and timedeltas via _add_delta_td
The internal implementation of _add_delta_td already correctly
adds a datetime index and an array of timedeltas, so use that
implementation instead of wrapping in a TimedeltaIndex (which
requires a bit more metadata like name to be passed around).
Move test to datetimelike to check addition of TimedeltaIndex
and np.array(timedelta64) with each of {DatetimeIndex,
TimedeltaIndex, PeriodIndex}. Fix the latter two to explicitly
support addition with a numpy array.
Clarify some comments such as the whatsnew and move tests to
test_datetimelike.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.21.0.txt
+1-1
Original file line number
Diff line number
Diff line change
@@ -506,7 +506,7 @@ Indexing
506
506
- Bug in ``CategoricalIndex`` reindexing in which specified indices containing duplicates were not being respected (:issue:`17323`)
507
507
- Bug in intersection of ``RangeIndex`` with negative step (:issue:`17296`)
508
508
- Bug in ``IntervalIndex`` where performing a scalar lookup fails for included right endpoints of non-overlapping monotonic decreasing indexes (:issue:`16417`, :issue:`17271`)
509
-
- Bug in adding ``DatetimeIndex`` with a ``TimedeltaIndex`` or a numpy array with ``dtype="timedelta64"`` (:issue:`17558`)
509
+
- Bug in adding tz-aware ``DatetimeIndex`` with a numpy array of ``timedelta64``s, and a bug in adding tz-aware ``DatetimeIndex`` with ``TimedeltaIndex`` (:issue:`17558`)
0 commit comments