Sorting arrays in NumPy by column

清風oo發表於2018-11-26

https://stackoverflow.com/questions/2828059/sorting-arrays-in-numpy-by-column

I suppose this works: a[a[:,1].argsort()]

相關文章