2.2 Indexing and Slicing Arrays (NOT A DELIVERABLE):

Objective: Learn how extract and slice arrays using NumPy.

Part 1:

  1. Download the Demo2.2_IndexingAndSlicing.ipynb file.
  2. Work through part 1. Your output cell should look similar to the below:

Expected output: NumPy array indexing demonstration extracting elements from a 2D array

 

Part 2:

  1. Continue working in the Demo2.2_IndexingAndSlicing.ipynb file.
  2. Work through part 2. Your output cell should look similar to the below:

Expected output: NumPy array slicing operations extracting rows and columns from a 2D array

 

Part 3:

  1. Continue working in the Demo2.2_IndexingAndSlicing.ipynb file.
  2. Work through part 3. Your output cell should look similar to the below:

Expected output: Advanced NumPy array slicing and boolean indexing results