Skip to content

Commit

Permalink
use __finalize__ for attrs bin ops in base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fbourgey committed Dec 2, 2024
1 parent 8da62bd commit c2c87dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2c87dd

Please sign in to comment.