diff --git a/pandas/core/ops.py b/pandas/core/ops.py index b6fc47c04f174..fa50036b6eb95 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -622,7 +622,8 @@ def _is_offset(self, arr_or_obj): """ check if obj or all elements of list-like is DateOffset """ if isinstance(arr_or_obj, ABCDateOffset): return True - elif is_list_like(arr_or_obj) and len(arr_or_obj): + elif (is_list_like(arr_or_obj) and len(arr_or_obj) and + is_object_dtype(arr_or_obj)): return all(isinstance(x, ABCDateOffset) for x in arr_or_obj) return False