summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Gerity <snoopjedi@gmail.com>2021-01-26 17:08:06 -0500
committerJames Gerity <snoopjedi@gmail.com>2021-01-26 17:08:06 -0500
commitf7d26c28190b430407e35c2169af88935353403c (patch)
tree97dc637ad199fc1331670d705089a867c482b241
parentedab247184252508b51f6012bcf86c438d1f596e (diff)
downloadnumpy-f7d26c28190b430407e35c2169af88935353403c.tar.gz
Clarify description of example
-rw-r--r--numpy/random/_generator.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx
index 93b1d6160..0a41f13b6 100644
--- a/numpy/random/_generator.pyx
+++ b/numpy/random/_generator.pyx
@@ -665,8 +665,8 @@ cdef class Generator:
array([3,1,0]) # random
>>> #This is equivalent to rng.permutation(np.arange(5))[:3]
- Generate a uniform random sample from a 2-D array, without
- replacement:
+ Generate a uniform random sample from a 2-D array along the first
+ axis (the default), without replacement:
>>> rng.choice([[0, 1, 2], [3, 4, 5], [6, 7, 8]], 2, replace=False)
array([[3, 4, 5], # random