[Numpy-discussion] ndarray.count() ?

Martin Spacek mspacek at mm.st
Thu Sep 7 17:21:10 EDT 2006


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

Thanks,

Martin

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