Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy sort array by another array

order = arr1.argsort()
sorted_arr1 = arr1[order]
sorted_arr2 = arr2[order]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #sort #array #array
ADD COMMENT
Topic
Name
6+7 =