Numpy Arrays
Reading
Detailed Numpy documentation can be found here. Focus on sub-section What is Numpy? and the section Quickstart tutorial.
For reference, the commands we saw in class are found in np_tutorial.py.
Key ideas
About Numpy:
- NumPy is Python library written in C to provide fast numerical methods for scientific computation.
- NumPy enables Python users to use a data structure called an array. You can conceptualize an array as an efficient implementation of a list.
Array functionality:
- Array slicing
Active learning
Activity 1
Implement everything described in np_practice.py.