-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
STY: ZIP strict for pandas/io #62469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
9a1c452
ee2bf48
ccdc4f5
70a8357
e431a8b
8065ce1
e5a9750
ce141ba
b70e14e
3591b11
3c2d0c0
bae4e48
2f79a25
3da45c3
c324360
85b57de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -237,7 +237,7 @@ def _extract_multi_indexer_columns( | |||||||
def extract(r): | ||||||||
return tuple(r[i] for i in range(field_count) if i not in sic) | ||||||||
|
||||||||
columns = list(zip(*(extract(r) for r in header))) | ||||||||
columns = list(zip(*(extract(r) for r in header), strict=True)) | ||||||||
names = columns.copy() | ||||||||
for single_ic in sorted(ic): | ||||||||
names.insert(single_ic, single_ic) | ||||||||
|
@@ -330,7 +330,7 @@ def _agg_index(self, index) -> Index: | |||||||
names: Iterable = self.index_names | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
else: | ||||||||
names = itertools.cycle([None]) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
for i, (arr, name) in enumerate(zip(index, names)): | ||||||||
for i, (arr, name) in enumerate(zip(index, names, strict=True)): | ||||||||
|
for i, (arr, name) in enumerate(zip(index, names, strict=True)): | |
for i, (arr, name) in enumerate(zip(index, names, strict=strict)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Alvaro-Kothe I made the changes per your request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this False?