You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the IO page of the docs (https://github.com/pandas-dev/pandas/blob/master/doc/source/io.rst), there are some occurrences of direct calls to randn instead of using the properly imported np.random.randn in full, which makes the examples not reproducible if you only imported import numpy as np.
A PR that replaces randn with np.random.randn would thus be very welcome.
The text was updated successfully, but these errors were encountered:
randn has been assigned to np.random.randn at very beginning in the import part?
Yes, that is the reason it currently works in our docs. But, that import is hidden to the viewer of the docs, and is not a standard numpy import. So therefore we want to fix this, with the goal to be able to remove this randn = np.random.randn
In the IO page of the docs (https://github.com/pandas-dev/pandas/blob/master/doc/source/io.rst), there are some occurrences of direct calls to
randn
instead of using the properly importednp.random.randn
in full, which makes the examples not reproducible if you only importedimport numpy as np
.A PR that replaces
randn
withnp.random.randn
would thus be very welcome.The text was updated successfully, but these errors were encountered: