Update README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2023-12-29 18:41:32 +01:00 committed by GitHub
parent ebee66aa1a
commit d4692f5665
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,6 +187,16 @@ class slice(start, stop, step=None)
>
> Slice objects are also generated when extended indexing syntax is used. For example: a[start:stop:step] or a[start:stop, i].
```python
import numpy as np
idx = np.s_[2:10, 20:100, 10]
print(idx) # -> (slice(2, 10, None), slice(20, 100, None), 10)
data = np.zeros((20, 101, 11))
x = data[idx]
print(x.shape) # -> (8, 80)
```
## [numpy.c_](https://numpy.org/doc/stable/reference/generated/numpy.c_.html)