2011-09-07 15 views

Respuesta

1

He aquí un ejemplo, para referencia y conveniencia:

# create an array 
a = np.array([5,2,3]) 

# np.sort - returns the array, sorted 
np.sort(a) 
>>> array([2, 3, 5]) 

# argsort - returns the original indexes of the sorted array 
np.argsort(a) 
>>> array([1, 2, 0]) 
Cuestiones relacionadas