[Numpy-discussion] A unique function...
Tue Mar 27 17:08:56 CDT 2007
> There's unique and unique1d, but these don't output the number of
> 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.
Well, I found it anyway. As I was pretty sure it was a private function, I
grep on 'def _' | sed '/__/' and find it in scipy.stats.morestats: it's the
Note that I could probably built one with a combo unique1d/setmember1d.
More information about the Numpy-discussion