What does numpy add to python
a richer data set including
- more numeric types
- vectors
- matrices
- many matrix functions
What are vectors?
Ordered arrays of elements
- all elements of the same type
- have dimension/rank n, which is the amount of elements
What is a 1-D array?
An array with one dimensions and thus one index
How do you start with data creation in numpy?
Usually with one parameter, which is the shape of the object
Can be a single value for 1-D, or a tuple (n,m,…)
What do Indexing and slicing mean for numpy arrays?
indexing : referring to an element of an array by its position in the array
slicing: getting a subset of elements of an array based on their indices