Skip to content

Commit a7e0900

Browse files
STY: Add strict=True to zip in pandas/core/reshape/reshape.py (#63151)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d78d534 commit a7e0900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/reshape/reshape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def _stack_multi_column_index(columns: MultiIndex) -> MultiIndex | Index:
778778

779779
levs = (
780780
[lev[c] if c >= 0 else None for c in codes]
781-
for lev, codes in zip(columns.levels[:-1], columns.codes[:-1])
781+
for lev, codes in zip(columns.levels[:-1], columns.codes[:-1], strict=True)
782782
)
783783

784784
# Remove duplicate tuples in the MultiIndex.

0 commit comments

Comments
 (0)