Skip to content

Commit c5d2751

Browse files
committed
timedelta too
1 parent 83e99cf commit c5d2751

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,8 @@ def _is_offset(self, arr_or_obj):
622622
""" check if obj or all elements of list-like is DateOffset """
623623
if isinstance(arr_or_obj, ABCDateOffset):
624624
return True
625-
elif is_datetime64_dtype(arr_or_obj):
625+
elif (is_datetime64_dtype(arr_or_obj) or
626+
is_timedelta64_dtype(arr_or_obj)):
626627
# Don't want to check elementwise for Series / array of datetime
627628
return False
628629
elif is_list_like(arr_or_obj) and len(arr_or_obj):

0 commit comments

Comments
 (0)