Chapter 3. Get in Terms with Commonly Used Functions
In this chapter, we will have a look at common NumPy functions. In particular, we will learn how to load data from files using a historical stock prices example. Also, we will get to see the basic NumPy mathematical and statistical functions. We will learn how to read from and write to files. Also, we will get a taste of the functional programming and linear algebra possibilities in NumPy.
In this chapter, we shall cover the following topics:
Functions working on arrays
Loading arrays from files
Writing arrays to files
Simple mathematical and statistical functions
File I/O
First, we will learn about file I/O with NumPy. Data is usually stored in files. You will not get far if you are not able to read from and write to files.