On Fri, Mar 21, 2014 at 6:26 PM, Alan G Isaac <[email protected]> wrote:

> 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?
>
>
Yes, it is intended, although the required mergesort wasn't available for
all types before numpy 1.7.

Chuck
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to