Skip to content

Commit cbe1614

Browse files
author
Anthony Speicher
committed
Updated core/internals/blocks.py and core/internals/managers.py to reflect correct strict designations
1 parent a59461d commit cbe1614

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/internals/blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ def replace_list(
803803
# Exclude anything that we know we won't contain
804804
pairs = [
805805
(x, y)
806-
for x, y in zip(src_list, dest_list, strict=False)
806+
for x, y in zip(src_list, dest_list, strict=True)
807807
if (self._can_hold_element(x) or (self.dtype == "string" and is_re(x)))
808808
]
809809
if not pairs:

pandas/core/internals/managers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ def _slice_take_blocks_ax0(
991991
elif only_slice:
992992
# GH#33597 slice instead of take, so we get
993993
# views instead of copies
994-
for i, ml in zip(taker, mgr_locs, strict=False):
994+
for i, ml in zip(taker, mgr_locs, strict=True):
995995
slc = slice(i, i + 1)
996996
bp = BlockPlacement(ml)
997997
nb = blk.getitem_block_columns(slc, new_mgr_locs=bp)

0 commit comments

Comments
 (0)