diff options
author | Juan Luis Cano RodrÃguez <juanlu001@gmail.com> | 2013-01-04 12:31:51 +0100 |
---|---|---|
committer | Juan Luis Cano RodrÃguez <juanlu001@gmail.com> | 2013-01-04 12:31:51 +0100 |
commit | 1899991549a318e508b3b0ba9f376ecd8d1ccdde (patch) | |
tree | 0bcdd37b48971a24246bca0a5bcbc04f30c944f4 | |
parent | cce1c45afa3d821c5ca313f06b2481e55c98a238 (diff) | |
download | numpy-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.pyx | 2 |
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 |