File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -1731,32 +1731,27 @@ indexes = <array>.argmin(<axis>)
1731
1731
* ** Axis is an index of dimension, that gets collapsed.**
1732
1732
1733
1733
### Indexing
1734
- #### Basic indexing:
1735
- ``` bash
1736
- < el> = < 2d_array> [0, 0]
1737
- ```
1738
-
1739
- #### Basic slicing:
1734
+ #### Basic:
1740
1735
``` bash
1736
+ < el> = < 2d_array> [0, 0] # First element.
1741
1737
< 1d_view> = < 2d_array> [0] # First row.
1742
1738
< 1d_view> = < 2d_array> [:, 0] # First column. Also [..., 0].
1743
1739
< 3d_view> = < 2d_array> [None, :, :] # Expanded by dimension of size 1.
1744
1740
```
1745
1741
1746
- #### Integer array indexing :
1742
+ #### Advanced :
1747
1743
``` bash
1748
1744
< 1d_array> = < 2d_array> [< 1d_row_indexes> , < 1d_column_indexes> ]
1749
1745
< 2d_array> = < 2d_array> [< 2d_row_indexes> , < 2d_column_indexes> ]
1750
1746
```
1751
1747
1752
- * ** If row and column indexes differ in shape, they are combined with broadcasting.**
1753
-
1754
- #### Boolean array indexing:
1755
1748
``` bash
1756
1749
< 2d_bools> = < 2d_array> > 0
1757
1750
< 1d_array> = < 2d_array> [< 2d_bools> ]
1758
1751
```
1759
1752
1753
+ * ** If row and column indexes differ in shape, they are combined with broadcasting.**
1754
+
1760
1755
### Broadcasting
1761
1756
** Broadcasting is a set of rules by which NumPy functions operate on arrays of different sizes and/or dimensions.**
1762
1757
You can’t perform that action at this time.
0 commit comments