[Numpy-discussion] indexes in an array where value is greater than 1?

Benjamin Root ben.root at ou.edu
Sun May 27 20:23:39 EDT 2012


On Sunday, May 27, 2012, Chao YUE wrote:

> for me, np.nonzero() and np.where() both work. It seems they have same
> function.
>
> chao


They are not identical. Nonzeros is for indices. The where function is
really meant for a different purpose, but special-cases for this call
signature.

Ben Root

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120527/dd8bf1ce/attachment.html>


More information about the NumPy-Discussion mailing list