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: unify numpy.random-related imports #37492
CLN: unify numpy.random-related imports #37492
Conversation
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.
Thanks @onshek!
Here or in a follow-on we'd like to add a CI check to enforce this in future PRs (unless it's already here and I missed it)
I see, thanks @arw2019 ! |
thanks @onshek happy to have a follow for the check (which you can implement using the pre-commit); we already do somethings like this, e.g. to enforce imports of DataFrame,Series and so on (so similar but a slightly different check) |
Is this ? commit https://github.com/pandas-dev/pandas/blob/master/.pre-commit-config.yaml |
(keep this issue open until both CLN: unify numpy.random-related imports #37492 and CI: check for numpy.random-related imports #37117 are completed)black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
update 2020-10-30
This is the replacement for #37103, since I messed up the git timeline in the previous PR(the conflicts are too complex to fix). The separate CI is in #37117.
The whole project is reformatted except
pandas/_testing.py
for there are quite a fewtm.randn
used in testing files.below is the script to do the whole clean-up