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:23:17 +01:00 committed by GitHub
parent 45ad09cd17
commit 85c0c01268
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,8 @@ print(c)
print(c.shape) # -> (10,2)
```
Output:
```python
[[0 0]
[1 1]
@ -90,3 +92,39 @@ print(c.shape) # -> (10,2)
[9 9]]
```
## [numpy.r_](https://numpy.org/doc/stable/reference/generated/numpy.r_.html)
{: .topic-optional}
This is an optional topic!
```python
numpy.r_ = <numpy.lib.index_tricks.RClass object>
```
> Translates slice objects to concatenation along the first axis.
```python
import numpy as np
a = np.arange(0, 10)
print(a.shape) # -> (10,)
b = np.arange(0, 10)
print(b.shape) # -> (10,)
c = np.r_[a, b]
print(c.shape) # -> (20,)
```
## [numpy.c_](https://numpy.org/doc/stable/reference/generated/numpy.c_.html)
{: .topic-optional}
This is an optional topic!
```python
numpy.c_ = <numpy.lib.index_tricks.CClass object>
```