Skip to content

Commit 65242cc

Browse files
authored
post-merge fixup (#38685)
1 parent 08230db commit 65242cc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/core/internals/blocks.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -1063,15 +1063,12 @@ def putmask(self, mask, new, axis: int = 0) -> List["Block"]:
10631063
# We only get here for non-Extension Blocks, so _try_coerce_args
10641064
# is only relevant for DatetimeBlock and TimedeltaBlock
10651065
if self.dtype.kind in ["m", "M"]:
1066-
blk = self
1067-
if not inplace:
1068-
blk = self.copy()
1069-
arr = blk.array_values()
1066+
arr = self.array_values()
10701067
arr = cast("NDArrayBackedExtensionArray", arr)
10711068
if transpose:
10721069
arr = arr.T
10731070
arr.putmask(mask, new)
1074-
return [blk]
1071+
return [self]
10751072

10761073
if lib.is_scalar(new):
10771074
new = convert_scalar_for_putitemlike(new, self.values.dtype)

0 commit comments

Comments
 (0)