Skip to content
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

CLN;: remove compat.lzip #26311

Merged
merged 2 commits into from
May 8, 2019
Merged

Conversation

topper-123
Copy link
Contributor

Removal of compat.lzip from the code base.

@codecov
Copy link

codecov bot commented May 7, 2019

Codecov Report

Merging #26311 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26311      +/-   ##
==========================================
- Coverage   92.04%   92.03%   -0.01%     
==========================================
  Files         175      175              
  Lines       52302    52292      -10     
==========================================
- Hits        48141    48127      -14     
- Misses       4161     4165       +4
Flag Coverage Δ
#multiple 90.58% <100%> (-0.01%) ⬇️
#single 40.72% <31.81%> (-0.16%) ⬇️
Impacted Files Coverage Δ
pandas/compat/__init__.py 94.28% <ø> (-0.31%) ⬇️
pandas/core/indexes/multi.py 95.62% <100%> (-0.01%) ⬇️
pandas/core/groupby/ops.py 95.96% <100%> (-0.01%) ⬇️
pandas/core/arrays/categorical.py 95.95% <100%> (-0.01%) ⬇️
pandas/core/groupby/generic.py 89% <100%> (-0.02%) ⬇️
pandas/io/formats/format.py 97.9% <100%> (-0.01%) ⬇️
pandas/core/frame.py 97.01% <100%> (-0.12%) ⬇️
pandas/core/generic.py 93.57% <100%> (ø) ⬆️
pandas/util/testing.py 90.6% <100%> (ø) ⬆️
pandas/core/reshape/concat.py 97.2% <100%> (ø) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2bbc0c2...bacd6cf. Read the comment docs.

@codecov
Copy link

codecov bot commented May 7, 2019

Codecov Report

Merging #26311 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26311      +/-   ##
==========================================
- Coverage   92.04%   92.03%   -0.01%     
==========================================
  Files         175      175              
  Lines       52302    52292      -10     
==========================================
- Hits        48142    48128      -14     
- Misses       4160     4164       +4
Flag Coverage Δ
#multiple 90.58% <100%> (-0.01%) ⬇️
#single 40.71% <32%> (-0.18%) ⬇️
Impacted Files Coverage Δ
pandas/compat/__init__.py 94.28% <ø> (-0.31%) ⬇️
pandas/core/indexes/multi.py 95.62% <100%> (-0.01%) ⬇️
pandas/core/groupby/ops.py 95.96% <100%> (-0.01%) ⬇️
pandas/core/arrays/categorical.py 95.95% <100%> (-0.01%) ⬇️
pandas/core/groupby/generic.py 89% <100%> (-0.02%) ⬇️
pandas/io/formats/format.py 97.9% <100%> (-0.01%) ⬇️
pandas/core/frame.py 97.01% <100%> (-0.12%) ⬇️
pandas/core/generic.py 93.57% <100%> (ø) ⬆️
pandas/util/testing.py 90.7% <100%> (ø) ⬆️
pandas/core/reshape/concat.py 97.2% <100%> (ø) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 20fa58d...792d3e0. Read the comment docs.

@topper-123
Copy link
Contributor Author

The failures are unrelated to this PR. (They are caused by #26287).

@WillAyd
Copy link
Member

WillAyd commented May 7, 2019 via email

@@ -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 = lzip(*items) or ([], [])
keys, values = zip(*items) if len(items) else ([], [])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since items is a list I think you can modify the ternary to be zip(*items) if items else ([], [])

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gfyoung gfyoung added this to the 0.25.0 milestone May 8, 2019
@gfyoung gfyoung merged commit 6d7ba05 into pandas-dev:master May 8, 2019
@gfyoung
Copy link
Member

gfyoung commented May 8, 2019

Thanks @topper-123 ! Keep them coming!

@topper-123 topper-123 deleted the remove_compat.lzip branch May 8, 2019 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants