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
Why is this wrong? The way to sort [3, 1, 2] is to put 1 first (index 1), then 2 (index 2), then 3 (index 0), so the correct answer is [1, 2, 0]. What answer did you expect and why? Maybe you are confusing np.argsort with np.sort?
argsort's behavior is subtle, and many people expect it to do something different than what it is documented to do (see #8757 and other closed issues). But it is behaving as designed and documented.
Describe the issue:
numpy version 1.17.0
python version 3.6.9
windows 10
the argsort function returns the wrong result.
Reproduce the code example:
Error message:
No response
NumPy/Python version information:
numpy version 1.17.0
python version 3.6.9
windows 10
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: