Advanced NumPy

“Genius is one percent inspiration and ninety-nine percent perspiration.”
Thomas Edison

We gained only a basic understanding of tensors and NumPy arrays in the last chapter. It included the introduction to basic functions for array creation and manipulating their data-types, shapes, and axes. This chapter dives deeper into more advanced array manipulation techniques and commonly used NumPy functions, such as universal functions, summary statistics, etc.

TipChapter Objectives

In this chapter, we will learn the following:

  1. NumPy universal functions and custom functions

  2. More involved NumPy broadcasting

  3. Mathematical and statistical methods in NumPy

  4. Applications of linear algebra in data mining