We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c49240 commit ed4c77fCopy full SHA for ed4c77f
pandas/core/internals/blocks.py
@@ -877,7 +877,8 @@ def replace_list(
877
if id(obj) in to_remove_ids:
878
continue
879
new_refs.append(wr)
880
- self.refs.referenced_blocks = new_refs
+ # Preserve list identity to avoid breaking external references
881
+ self.refs.referenced_blocks[:] = new_refs
882
# For blocks that have already copied, clear their refs to avoid
883
# future copies.
884
for blk in result:
0 commit comments