Skip to content

Commit fb037eb

Browse files
committed
Merge pull request numpy#5298 from nils-werner/resizedocstring
Expand np.resize docstring
2 parents 8bcb756 + e4d3069 commit fb037eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

numpy/core/fromnumeric.py

+3
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,9 @@ def resize(a, new_shape):
10881088
Examples
10891089
--------
10901090
>>> a=np.array([[0,1],[2,3]])
1091+
>>> np.resize(a,(2,3))
1092+
array([[0, 1, 2],
1093+
[3, 0, 1]])
10911094
>>> np.resize(a,(1,4))
10921095
array([[0, 1, 2, 3]])
10931096
>>> np.resize(a,(2,4))

0 commit comments

Comments
 (0)