summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Luis Cano Rodríguez <juanlu001@gmail.com>2013-01-04 12:31:51 +0100
committerJuan Luis Cano Rodríguez <juanlu001@gmail.com>2013-01-04 12:31:51 +0100
commit1899991549a318e508b3b0ba9f376ecd8d1ccdde (patch)
tree0bcdd37b48971a24246bca0a5bcbc04f30c944f4
parentcce1c45afa3d821c5ca313f06b2481e55c98a238 (diff)
downloadnumpy-1899991549a318e508b3b0ba9f376ecd8d1ccdde.tar.gz
Fixed choice docstring, wrong default size
Commit acf7421128b9d974d5153759650b7aaee3c2efec introduced a change in the handling of the `size` argument but the docstring wasn't updated accordingly. This commit fixes the issue.
-rw-r--r--numpy/random/mtrand/mtrand.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx
index ed9b5273b..f115dccdd 100644
--- a/numpy/random/mtrand/mtrand.pyx
+++ b/numpy/random/mtrand/mtrand.pyx
@@ -918,7 +918,7 @@ cdef class RandomState:
def choice(self, a, size=None, replace=True, p=None):
"""
- choice(a, size=1, replace=True, p=None)
+ choice(a, size=None, replace=True, p=None)
Generates a random sample from a given 1-D array