Chapter 3. Getting Familiar 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 by using an example involving historical stock prices. 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 would not get far if you were not able to read from and write to files.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset