Skip to content

Commit c5ff424

Browse files
committed
BUG: Run index through type coercion after numeric operations.
Closes pandas-dev#9966.
1 parent d9c96cd commit c5ff424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2531,7 +2531,7 @@ def _evaluate_numeric_binop(self, other):
25312531
if reversed:
25322532
values, other = other, values
25332533

2534-
return self._shallow_copy(op(values, other))
2534+
return Index(op(values, other), **self._get_attributes_dict())
25352535

25362536
return _evaluate_numeric_binop
25372537

0 commit comments

Comments
 (0)