mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-17 20:56:41 +02:00
|
||
---|---|---|
.. | ||
README.md |
Where
{:.no_toc}
* TOC {:toc}The goal
Questions to David Rotermund
numpy.where
numpy.where(condition, [x, y, ]/)
Return elements chosen from x or y depending on condition.
condition : array_like, bool Where True, yield x, otherwise yield y.
x, y : array_like Values from which to choose. x, y and condition need to be broadcastable to some shape.