From 4b931fa8df9f62ba213218ccec7f3b12bf51b64a Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Fri, 17 Nov 2023 09:20:44 +0100 Subject: [PATCH] test _iset_single --- pandas/core/internals/managers.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 13c039cef3f91..79c27d1ae4b36 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1310,9 +1310,6 @@ def _iset_single( if inplace and blk.should_store(value): copy = False - if using_copy_on_write() and not self._has_no_reference_block(blkno): - # perform Copy-on-Write and clear the reference - copy = True iloc = self.blklocs[loc] blk.set_inplace(slice(iloc, iloc + 1), value, copy=copy) return