-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: unify numpy.random-related imports #37053
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
Comments
yeah this would be fine to change |
Do you mean adding a new code_check to check the whole package instead of the single file? |
yes see code_check.sh |
take |
My 2 cents; I would actually prefer to standardize in the other direction. i.e. use |
sorry i think i misread the top we always want fully qualified things eg np.random.randn no aliases for these |
Um...it seems I did the opposite. will be corrected later. |
Location of the imports
pandas/pandas/tests/plotting/test_hist_method.py
Lines 3 to 4 in 8a25b23
Imports problem
All numpy-related imports are only aboutnumpy.random
includingrandint
,choice
,normal
, etcPart of numpy.random-related imports use aliases
Suggested fix for imports
eg:
import numpy as np
&&np.ranom.randn
-->from numpy.random import randn
from numpy.random import randn
-->import numpy as np
&&np.ranom.randn
The text was updated successfully, but these errors were encountered: