Skip to content

Commit c2c87dd

Browse files
committed
use __finalize__ for attrs bin ops in base.py
1 parent 8da62bd commit c2c87dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ def _duplicated(self, keep: DropKeep = "first") -> npt.NDArray[np.bool_]:
14641464

14651465
def _arith_method(self, other, op):
14661466
if not getattr(self, "attrs", None) and getattr(other, "attrs", None):
1467-
self.attrs = other.attrs
1467+
self.__finalize__(other)
14681468
res_name = ops.get_op_result_name(self, other)
14691469

14701470
lvalues = self._values

0 commit comments

Comments
 (0)