File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1676,16 +1676,16 @@ import numpy as np
1676
1676
< array> = np.random.randint(from_inclusive, to_exclusive, < shape> )
1677
1677
```
1678
1678
1679
- ``` python
1680
- first_column = < array> [:, 0 ] # Or: <array>[..., 0]
1681
- value = < array> .min([axis])
1682
- index = < array> .argmin([axis])
1683
- ```
1684
-
1685
1679
``` python
1686
1680
< array> .shape = < shape>
1687
1681
< view> = < array> .reshape(< shape> )
1688
1682
< view> = np.broadcast_to(< array> , < shape> )
1683
+ ```
1684
+
1685
+ ``` python
1686
+ < el_or_array> = < array> [:,0 ] # First column.
1687
+ < el_or_array> = < array> .sum([< axix> ]) # Axis is an index of dimension that gets collapsed.
1688
+ < el_or_array> = < array> .argmin([< axis> ]) # Returns index/es of smallest elements.
1689
1689
< el_or_array> = < array> [filter_expression]
1690
1690
```
1691
1691
You can’t perform that action at this time.
0 commit comments