From c2c87ddf1d10aaa11233aecd8286375f6afa96a4 Mon Sep 17 00:00:00 2001 From: fbourgey Date: Mon, 2 Dec 2024 17:08:47 -0500 Subject: [PATCH] use __finalize__ for attrs bin ops in base.py --- pandas/core/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/base.py b/pandas/core/base.py index 28d90dae060e3..98d3d470da2c7 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1464,7 +1464,7 @@ def _duplicated(self, keep: DropKeep = "first") -> npt.NDArray[np.bool_]: def _arith_method(self, other, op): if not getattr(self, "attrs", None) and getattr(other, "attrs", None): - self.attrs = other.attrs + self.__finalize__(other) res_name = ops.get_op_result_name(self, other) lvalues = self._values