8000 DOC: Replace reference to np.swapaxis with np.swapaxes (#8914) · juliantaylor/numpy@0c4f621 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c4f621

Browse files
jnicharris
authored andcommitted
DOC: Replace reference to np.swapaxis with np.swapaxes (numpy#8914)
DOC: Replace reference to np.swapaxis with np.swapaxes The former function does not exist.
1 parent 65ba460 commit 0c4f621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/numeric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ def moveaxis(a, source, destination):
16391639
16401640
>>> np.transpose(x).shape
16411641
(5, 4, 3)
1642-
>>> np.swapaxis(x, 0, -1).shape
1642+
>>> np.swapaxes(x, 0, -1).shape
16431643
(5, 4, 3)
16441644
>>> np.moveaxis(x, [0, 1], [-1, -2]).shape
16451645
(5, 4, 3)

0 commit comments

Comments
 (0)
0