File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2618,19 +2618,19 @@ indexes = <array>.argmin(axis)
2618
2618
* ** Axis is the index of a dimension that gets collapsed. The leftmost dimension has index 0.**
2619
2619
2620
2620
### Indexing
2621
- ``` python
2621
+ ``` bash
2622
2622
< el> = < 2d_array> [0, 0] # First element.
2623
2623
< 1d_view> = < 2d_array> [0] # First row.
2624
2624
< 1d_view> = < 2d_array> [:, 0] # First column. Also [..., 0].
2625
2625
< 3d_view> = < 2d_array> [None, :, :] # Expanded by dimension of size 1.
2626
2626
```
2627
2627
2628
- ``` python
2628
+ ``` bash
2629
2629
< 1d_array> = < 2d_array> [< 1d_row_indexes> , < 1d_column_indexes> ]
2630
2630
< 2d_array> = < 2d_array> [< 2d_row_indexes> , < 2d_column_indexes> ]
2631
2631
```
2632
2632
2633
- ``` python
2633
+ ``` bash
2634
2634
< 2d_bools> = < 2d_array> > 0
2635
2635
< 1d_array> = < 2d_array> [< 2d_bools> ]
2636
2636
```
Original file line number Diff line number Diff line change @@ -532,9 +532,9 @@ function fixHighlights() {
532
532
$ ( `code:contains(\'<class_name>\', <parents_tuple>, <attributes_dict>)` ) . html ( TYPE ) ;
533
533
$ ( `code:contains(ValueError: malformed node)` ) . html ( EVAL ) ;
534
534
$ ( `code:contains(pip3 install tqdm)` ) . html ( PROGRESS_BAR ) ;
535
- $ ( `code:contains(<el> = <2d_array>[0, 0])` ) . html ( NUMPY_1 ) ;
536
- $ ( `code:contains(<1d_array> = <2d_array>[<1d_row_indexes>)` ) . html ( NUMPY_2 ) ;
537
- $ ( `code:contains(<2d_bools> = <2d_array> > 0)` ) . html ( NUMPY_3 ) ;
535
+ $ ( `code:contains(<el> = <2d_array>[0, 0])` ) . html ( NUMPY_1 ) . removeClass ( ) . addClass ( "python language-python hljs" ) ;
536
+ $ ( `code:contains(<1d_array> = <2d_array>[<1d_row_indexes>)` ) . html ( NUMPY_2 ) . removeClass ( ) . addClass ( "python language-python hljs" ) ;
537
+ $ ( `code:contains(<2d_bools> = <2d_array> > 0)` ) . html ( NUMPY_3 ) . removeClass ( ) . addClass ( "python language-python hljs" ) ;
538
538
$ ( `code:contains(pip3 install pyinstaller)` ) . html ( PYINSTALLER ) ;
539
539
$ ( `ul:contains(Only available in)` ) . html ( INDEX ) ;
540
540
}
You can’t perform that action at this time.
0 commit comments