[Numpy-discussion] unique return_index order?

Alan G Isaac alan.isaac at gmail.com
Fri Mar 21 20:26:10 EDT 2014


The documentation of numpy.unique
http://docs.scipy.org/doc/numpy/reference/generated/numpy.unique.html
does not seem to promise that return_index=True will always index the
*first* occurrence of each unique item, which I believe is the current behavior.

A promise would be nice.
Is it intended?

Alan Isaac



More information about the NumPy-Discussion mailing list