In this chapter, we will learn about Numerical Python (NumPy) extensions, which is a library for the Python programming language, what it is, and why we need it. We will also look at arrays, which are the most important type of objects in the numpy library. We will learn how to work with arrays, what the most important methods are, and the attributes that we can use with arrays. Then, we will apply our knowledge and do some simulations to see how we use NumPy in the real world. By the end of this chapter, you will know all the foundations that you need to work with other libraries in Python's Data Science Stack, such as Matplotlib. We will also get into some motivating examples to see why we need NumPy and the main problem it solves.
We will cover the following topics:
- Introduction to NumPy
- NumPy arrays – creation, methods, and attributes...