Browse Source

Numpy

pull/10/head
Jure Šorn 5 years ago
parent
commit
b32d5f7789
1 changed files with 3 additions and 3 deletions
  1. 6
      README.md

6
README.md

@ -1720,9 +1720,9 @@ import numpy as np
#### Basic slicing:
```bash
<1d_view> = <2d_array>[0] # First row.
<1d_view> = <2d_array>[:, 0] # First column. Also [..., 0].
<3d_view> = <2d_array>[None,:,:] # Expanded by dimension of size 1.
<1d_view> = <2d_array>[0] # First row.
<1d_view> = <2d_array>[:, 0] # First column. Also [..., 0].
<3d_view> = <2d_array>[None, :, :] # Expanded by dimension of size 1.
```
#### Integer array indexing:

Loading…
Cancel
Save