Skip to content

Commit 4b8f749

Browse files
WuraolaOyewusiproost
authored andcommitted
DOC: Remove alias for numpy.random.randn from the docs (pandas-dev#28082)
1 parent 7a6aaba commit 4b8f749

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

doc/source/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@
315315
import numpy as np
316316
import pandas as pd
317317
318-
randn = np.random.randn
319318
np.random.seed(123456)
320319
np.set_printoptions(precision=4, suppress=True)
321320
pd.options.display.max_rows = 15

doc/source/whatsnew/v0.10.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ Here is a taste of what to expect.
498498

499499
.. code-block:: ipython
500500
501-
In [58]: p4d = Panel4D(randn(2, 2, 5, 4),
501+
In [58]: p4d = Panel4D(np.random.randn(2, 2, 5, 4),
502502
....: labels=['Label1','Label2'],
503503
....: items=['Item1', 'Item2'],
504504
....: major_axis=date_range('1/1/2000', periods=5),

0 commit comments

Comments
 (0)