[Numpy-discussion] A unique function...

Zachary Pincus zpincus at stanford.edu
Tue Mar 27 17:34:36 EDT 2007


Hello,

There's unique and unique1d, but these don't output the number of  
occurences.
There's also bincount, which outputs the number of each element, but  
includes zeros for non-present elements and so could be problematic  
for certain data.

Zach



On Mar 27, 2007, at 2:28 PM, Pierre GM wrote:

> All,
> I could swear that I ran once into a numpy (or scipy) function that  
> output the
> unique values of a 1d ndarray along with the number of occurences  
> of each
> element. If I'm not completely mistaken, it 's a private function  
> initially
> in Fortran.
> Does this ring a bell to anyone ? Where could I find this function ?
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion




More information about the NumPy-Discussion mailing list