The numpy module implements support for powerful multi-dimensional arrays. It is mostly used for scientific computing but can be useful in other scenarios.
The numpy module does not come with a default python installation and must be installed. To do this please open up command prompt and type "pip install numpy".
If this throws an error please follow the video above as it will show you another method to install numpy.
Before we can start using numpy we must import it. Typically when we import numpy we import it as np.
The simplest way to create a numpy array is to do so based on a list.
To get the shape of the array we can use:
Indexing numpy arrays is slightly different lists in python. To index we use one set of square brackets with ints separated by commas.
To get the amount of elements in the array we can use .size.
To see the amount of dimensions in our array we can use .ndim.
To add things into our arrays we can use np.append(array, item).
To delete something from our array we can use np.delete(array, index).