numpy.ma.argsort(a,axis=<no value>,kind='quicksort',order=None,endwith=True,fill_value=None)[source]¶Return an ndarray of indices that sort the array along thespecified axis. Masked values are filled beforehand tofill_value.
| Parameters: |
|
|---|---|
| Returns: |
|
See also
MaskedArray.sortlexsortndarray.sortNotes
Seesort for notes on the different sorting algorithms.
Examples
>>>a=np.ma.array([3,2,1],mask=[False,False,True])>>>amasked_array(data = [3 2 --], mask = [False False True], fill_value = 999999)>>>a.argsort()array([1, 0, 2])