A story that took time to understand python's argsort (memorial)

If you use np.argsort with the same momentum as np.sort, it's completely different.

The image below was very helpful

argsort.png

I thought that the order of the array would be returned exactly ([1,2,0] in the above picture), so it was quite confusing but misunderstood.

reference https://www.headboost.jp/numpy-argsort/

Recommended Posts

A story that took time to understand python's argsort (memorial)
A story that I was addicted to at np.where
[Python] A story that seemed to fall into a rounding trap
A story that I was addicted to calling Lambda from AWS Lambda.
A story that struggled to handle the Python package of PocketSphinx
A story that was struggling to loop processing 3 million ID data
[python] A note that started to understand the behavior of matplotlib.pyplot
A refreshing story about Python's Slice
A sloppy story about Python's Slice
A story addicted to Azure Pipelines
A story about using Python's reduce
A story that heroku that can be done in 5 minutes actually took 3 days
A story that suffered from OS differences when trying to implement a dissertation
A story that stumbled upon installing matplotlib
A story that stumbled upon a comparison operation
Analyze stocks to understand a company's performance
A way to understand Python duck typing
The story of IPv6 address that I want to keep at a minimum
A story that sometimes does not work if pip is up to date
A record of the time it took to deploy mysql on Cloud9 + Rails
A story that I was addicted to when I made SFTP communication with python