File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1713,26 +1713,26 @@ import numpy as np
1713
1713
```
1714
1714
1715
1715
### Indexing
1716
- #### Basic indexing
1716
+ #### Basic indexing:
1717
1717
``` bash
1718
1718
< el> = < 2d_array> [0, 0]
1719
1719
```
1720
1720
1721
- #### Basic slicing
1721
+ #### Basic slicing:
1722
1722
``` bash
1723
1723
< 1d_view> = < 2d_array> [0] # First row.
1724
1724
< 1d_view> = < 2d_array> [:, 0] # First column. Also [..., 0].
1725
1725
< 3d_view> = < 2d_array> [None,:,:] # Expanded by dimension of size 1.
1726
1726
```
1727
1727
1728
- #### Integer array indexing
1728
+ #### Integer array indexing:
1729
1729
** If row and column indexes differ in shape, they are combined with broadcasting.**
1730
1730
``` bash
1731
1731
< 1d_array> = < 2d_array> [< 1d_row_indexes> , < 1d_column_indexes> ]
1732
1732
< 2d_array> = < 2d_array> [< 2d_row_indexes> , < 2d_column_indexes> ]
1733
1733
```
1734
1734
1735
- #### Boolean array indexing
1735
+ #### Boolean array indexing:
1736
1736
``` bash
1737
1737
< 2d_bool_array> = < 2d_array> > 0
1738
1738
< 1d_array> = < 2d_array> [< 2d_bool_array> ]
You can’t perform that action at this time.
0 commit comments