You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is documented, and is functioning according to the note at the top of the documentation.
When only condition is provided, this function is a shorthand for np.asarray(condition).nonzero(). Using nonzero directly should be preferred, as it behaves correctly for subclasses. The rest of this documentation covers only the case where all three arguments are provided.
Closing. Please reopen if something still is not clear.
Reproducing code example:
Error message:
Expected to print:
Actually prints:
It seems that
np.where
is also returning a single element tuple.Numpy/Python version information:
1.17.4 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
The text was updated successfully, but these errors were encountered: