From bacef811b2f1beccc4ab0dcaf2df6482bd4080b5 Mon Sep 17 00:00:00 2001 From: Brock Date: Tue, 12 Jan 2021 07:57:48 -0800 Subject: [PATCH] CLN: remove redundant consolidation --- pandas/core/indexing.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index a1b06f3c9d6a1..ac0955c6c3e4c 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1865,7 +1865,6 @@ def _setitem_single_block(self, indexer, value, name: str): self.obj._check_is_chained_assignment_possible() # actually do the set - self.obj._consolidate_inplace() self.obj._mgr = self.obj._mgr.setitem(indexer=indexer, value=value) self.obj._maybe_update_cacher(clear=True)