[Numpy-discussion] ndarray.count() ?

Martin Spacek mspacek at mm.st
Thu Sep 7 16:21:10 CDT 2006

Great! That's exactly what I wanted. Works with floats too.



Robert Kern wrote:

> Mostly, it's simply easy enough to implement yourself. Not all one-liners should 
> be methods on the array object.
>    (a == value).sum()

More information about the Numpy-discussion mailing list