[Numpy-discussion] bug in numpy.where?

Andreas Mueller amueller at ais.uni-bonn.de
Fri Jul 27 15:58:57 EDT 2012


Hi Everybody.
The bug is that no error is raised, right?
The docs say

where(condition, [x, y])

x, y : array_like, optional
     Values from which to choose. `x` and `y` need to have the same
     shape as `condition`

In the example you gave, x was a scalar.

Cheers,
Andy



More information about the NumPy-Discussion mailing list