mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-18 21:26:41 +02:00
Create README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
5d05b4fe5b
commit
cc7956cd71
1 changed files with 27 additions and 0 deletions
27
numpy/where/README.md
Normal file
27
numpy/where/README.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Where
|
||||
{:.no_toc}
|
||||
|
||||
<nav markdown="1" class="toc-class">
|
||||
* TOC
|
||||
{:toc}
|
||||
</nav>
|
||||
|
||||
## The goal
|
||||
|
||||
|
||||
|
||||
Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
|
||||
|
||||
## [numpy.where](https://numpy.org/doc/stable/reference/generated/numpy.where.html)
|
||||
|
||||
```python
|
||||
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.
|
||||
|
Loading…
Add table
Reference in a new issue