Skip to content

Commit 55d5fca

Browse files
authored
DOC: update ndindex reference in np.choose docstring (numpy#27465)
1 parent 43b10db commit 55d5fca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

numpy/_core/fromnumeric.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,9 @@ def choose(a, choices, out=None, mode='raise'):
338338
339339
First of all, if confused or uncertain, definitely look at the Examples -
340340
in its full generality, this function is less simple than it might
341-
seem from the following code description (below ndi =
342-
`numpy.lib.index_tricks`):
341+
seem from the following code description::
343342
344-
``np.choose(a,c) == np.array([c[a[I]][I] for I in ndi.ndindex(a.shape)])``.
343+
np.choose(a,c) == np.array([c[a[I]][I] for I in np.ndindex(a.shape)])
345344
346345
But this omits some subtleties. Here is a fully general summary:
347346

0 commit comments

Comments
 (0)