Chapter 2. NumPy Arrays
Now that we have worked on a real example utilizing the foundational data analysis libraries from SciPy stack, it's time to learn about NumPy arrays. This chapter acquaints you with the fundamentals of NumPy arrays. At the end of this chapter, you will have a basic understanding of NumPy arrays and related functions.
The topics we will address in this chapter are as follows:
- The NumPy array object
- Creating a multidimensional array
- Selecting NumPy array elements
- NumPy numerical types
- One-dimensional slicing and indexing
- Manipulating array shapes
- Creating array views and copies
- Fancy indexing
- Indexing with a list of locations
- Indexing NumPy arrays with Booleans
- Broadcasting NumPy arrays
You may want to open the ch-02.ipynb
file in Jupyter Notebook to follow along the examples in this chapter or type them in a new notebook of your own.