Skip to content

Commit

Permalink
Merge pull request numpy#5298 from nils-werner/resizedocstring
Browse files Browse the repository at this point in the history
Expand np.resize docstring
  • Loading branch information
charris committed Nov 20, 2014
2 parents 8bcb756 + e4d3069 commit fb037eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions numpy/core/fromnumeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit fb037eb

Please sign in to comment.