Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

index of sorted list python

vals = numpy.array([2,3,1,4,5])
sort_index = numpy.argsort(vals)

>>> sort_index
array([2, 0, 1, 3, 4])
 
PREVIOUS NEXT
Tagged: #index #sorted #list #python
ADD COMMENT
Topic
Name
2+9 =