summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-11-20 09:19:22 -0500
committerCharles Harris <charlesr.harris@gmail.com>2014-11-20 09:19:22 -0500
commitfb037eba5432d401f4c85d97051b09147b20d5c4 (patch)
treeb2295f62e3c0cb68992c5afd94644cf33b4e9d93 /numpy/core/fromnumeric.py
parent8bcb7569c92dc94d5b1516e7d33608bbd041a6bf (diff)
parente4d30698747b01d798ee7aac565bf290f6b0f5b7 (diff)
downloadnumpy-fb037eba5432d401f4c85d97051b09147b20d5c4.tar.gz
Merge pull request #5298 from nils-werner/resizedocstring
Expand np.resize docstring
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index 28c1c7d75..84a10bf04 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -1088,6 +1088,9 @@ def resize(a, new_shape):
Examples
--------
>>> a=np.array([[0,1],[2,3]])
+ >>> np.resize(a,(2,3))
+ array([[0, 1, 2],
+ [3, 0, 1]])
>>> np.resize(a,(1,4))
array([[0, 1, 2, 3]])
>>> np.resize(a,(2,4))