Skip to content

Commit 59eee73

Browse files
revert change to _addsub_object_array
1 parent 135b215 commit 59eee73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/arrays/datetimelike.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1334,8 +1334,9 @@ def _addsub_object_array(self, other: np.ndarray, op):
13341334
result : same class as self
13351335
"""
13361336
assert op in [operator.add, operator.sub]
1337-
if len(other) == 1 and self.ndim == 1:
1337+
if len(other) == 1:
13381338
# If both 1D then broadcasting is unambiguous
1339+
# TODO(EA2D): require self.ndim == other.ndim here
13391340
return op(self, other[0])
13401341

13411342
warnings.warn(

0 commit comments

Comments
 (0)