A sampling of useful numpy array operations

Here we cover a sampling of useful features of numpy arrays. For more, see the numpy tutorial and related documentation.

We switch our illustrations to Python interactive mode to make it easier to show the results.



> python3
Python 3.4.5 (default, Jun  1 2017, 13:52:39) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import numpy as np
>>>



Subsections