8000 CLN;: remove compat.lzip by topper-123 · Pull Request #26311 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

CLN;: remove compat.lzip #26311

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

Merged
merged 2 commits into from
May 8, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Minor changes
  • Loading branch information
topper-123 committed May 7, 2019
commit 792d3e08f7e8f644119c2deea636253418eb07b8
2 changes: 1 addition & 1 deletion pandas/core/arrays/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -2691,4 +2691,4 @@ def _factorize_from_iterables(iterables):
if len(iterables) == 0:
# For consistency, it should return a list of 2 lists.
return [[], []]
return map(list, zip(*[_factorize_from_iterable(it) for it in iterables]))
return map(list, zip(*(_factorize_from_iterable(it) for it in iterables)))
2 changes: 1 addition & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6502,7 +6502,7 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
regex = True

items = list(to_replace.items())
keys, values = zip(*items) if len(items) else ([], [])
keys, values = zip(*items) if items else ([], [])

are_mappings = [is_dict_like(v) for v in values]

Expand Down
2 changes: 1 addition & 1 deletion pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ def _extract_multi_indexer_columns(self, header, index_names, col_names,
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)))
names = ic + columns

# If we find unnamed columns all in a single
Expand Down
0