-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
Explicit LooseVersion comps #18637
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
Explicit LooseVersion comps #18637
Conversation
|
lgtm. ping on green. |
Codecov Report
@@ Coverage Diff @@
## master #18637 +/- ##
==========================================
- Coverage 91.59% 91.57% -0.02%
==========================================
Files 155 155
Lines 51255 51255
==========================================
- Hits 46948 46939 -9
- Misses 4307 4316 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #18637 +/- ##
==========================================
- Coverage 91.59% 91.57% -0.02%
==========================================
Files 153 153
Lines 51221 51221
==========================================
- Hits 46917 46908 -9
- Misses 4304 4313 +9
Continue to review full report at Codecov.
|
|
@jreback all green |
jorisvandenbossche
left a comment
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.
Added a comment about line continuation, mainly to be consistent within the code base (please check the full diff, I didn't comment on all of them)
pandas/core/computation/check.py
Outdated
| ver = ne.__version__ | ||
| _NUMEXPR_INSTALLED = ver >= LooseVersion(_MIN_NUMEXPR_VERSION) | ||
| _NUMEXPR_INSTALLED = LooseVersion(ver) >= \ | ||
| LooseVersion(_MIN_NUMEXPR_VERSION) |
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.
Please use (..) for line continuation instead of \ (but here maybe you can also add the 'LooseVersion' on the line above (ver = LooseVersion(ne.__version__) to avoid the need of a line continuation)
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.
Was trying to keep all LooseVersion comps on the same line, but changed this back to put the one LooseVersion back on the line above for readability.
pandas/io/parquet.py
Outdated
| self._pyarrow_lt_050 = LooseVersion(pyarrow.__version__) < '0.5.0' | ||
| self._pyarrow_lt_060 = LooseVersion(pyarrow.__version__) < '0.6.0' | ||
| self._pyarrow_lt_050 = LooseVersion(pyarrow.__version__) < \ | ||
| LooseVersion('0.5.0') |
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.
same here
| pytest.skip("no numexpr") | ||
| else: | ||
| if ne.__version__ < LooseVersion(_MIN_NUMEXPR_VERSION): | ||
| if LooseVersion(ne.__version__) < \ |
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.
same here
f0b73f8 to
867da74
Compare
|
Hello @WillAyd! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on December 06, 2017 at 01:11 Hours UTC |
867da74 to
3d6b2d7
Compare
jreback
left a comment
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.
couple of style issues. otherwise lgtm. ping on green.
| pytest.skip("no numexpr") | ||
| else: | ||
| if ne.__version__ < LooseVersion(_MIN_NUMEXPR_VERSION): | ||
| if ( |
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.
hmm this looks funny.
pandas/tests/frame/test_rank.py
Outdated
| expected = DataFrame(sprank, columns=cols) | ||
|
|
||
| if LooseVersion(scipy.__version__) >= '0.17.0': | ||
| if ( |
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.
same here
3d6b2d7 to
c2cd226
Compare
c2cd226 to
87b4c42
Compare
|
thanks! |
git diff upstream/master -u -- "*.py" | flake8 --diff