BUG: np.argsort not returning correct order #20574
Labels
33 - Question
Question about NumPy usage or development
50 - Duplicate
57 - Close?
Issues which may be closable unless discussion continued
Describe the issue:
The resulting order of np.argsort appears to be incorrect and does not match with the order returned by x[argsort_idx].
Specifically, when sorting in descending order, the highlighted number should be in position 11, not 9.
Strangely enough, this results in the correct ordering of the values:
Not entirely sure what can be going on here. Thanks!
Reproduce the code example:
Error message:
No response
NumPy/Python version information:
numpy 1.18.1
python 3.7.10
The text was updated successfully, but these errors were encountered: