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
REF/CLN: collect imports at top of file, de-duplicate imports #5805
Conversation
Hello @jbrockmendel! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-05-29 04:42:47 UTC |
Codecov Report
@@ Coverage Diff @@
## master #5805 +/- ##
==========================================
+ Coverage 82.46% 82.47% +<.01%
==========================================
Files 595 595
Lines 93776 93765 -11
Branches 10353 10353
==========================================
- Hits 77333 77328 -5
+ Misses 14046 14040 -6
Partials 2397 2397
Continue to review full report at Codecov.
|
2 similar comments
Codecov Report
@@ Coverage Diff @@
## master #5805 +/- ##
==========================================
+ Coverage 82.46% 82.47% +<.01%
==========================================
Files 595 595
Lines 93776 93765 -11
Branches 10353 10353
==========================================
- Hits 77333 77328 -5
+ Misses 14046 14040 -6
Partials 2397 2397
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #5805 +/- ##
==========================================
+ Coverage 82.46% 82.47% +<.01%
==========================================
Files 595 595
Lines 93776 93765 -11
Branches 10353 10353
==========================================
- Hits 77333 77328 -5
+ Misses 14046 14040 -6
Partials 2397 2397
Continue to review full report at Codecov.
|
Cleaning of very old, unloved code. Ideally, the working examples in sm\sm\examples should be moved to notebooks in sm\examples\notebooks. |
4 years since the last non-bugfix change. |
#should be replace | ||
# FIXME: importing these patches scipy distribution classes in-place. | ||
# Don't do this. | ||
import statsmodels.sandbox.distributions.sppatch # noqa:F401 |
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.
don't change this import location
Given that this is monkey patching scipy, the location of the import is important and might change other results.
those PRs need review It's not a very productive use of time |
Awaiting comment on #5795. |
#5795 add it as or to a notebook for the docs and we don't have to worry about changes to the original script. |
Should "as or" be "as is or"? Wouldn't we want to avoid making the currently-wrong version into a notebook? |
I meant add it Based on skimming your changes, they look good, but I didn't check the details, nor what is "wrong" with the current version. |
No description provided.