[Numpy-discussion] unique() should return a sorted array

David Huard david.huard at gmail.com
Thu Jun 22 11:26:52 CDT 2006


Hi,

Numpy's unique(x) returns an array x with repetitions removed. However,
since it returns asarray(dict.keys()), the resulting array is not sorted,
worse, the original order may not be conserved. I think that unique() should
return a sorted array, like its matlab homonym.

Regards,

David Huard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060622/7fce8491/attachment-0001.html 


More information about the Numpy-discussion mailing list