June 2018
Beginner to intermediate
168 pages
3h 40m
English
Let's now discuss more advanced indexing techniques. We can index ndarray objects using other ndarray. We can slice an ndarray using either ndarray objects containing integers that correspond to the indices of the ndarray we wish to select, or ndarray objects of Boolean values, where the value true means a cell should be included in the slice.
Select the elements of arr2 that are not Wayne, and this is the result:

Wayne is not included in the selection, and this was the array that was generated to do that indexing:

It is ...
Read now
Unlock full access