
Learn to manipulate large data arrays with NumPy, a foundational skill for data science and machine learning, as you prepare for linear models and data visualization.
Discover how NumPy uses n-dimensional arrays to represent vectors, matrices, and tensors, enabling memory-efficient, vectorized operations on large data for data science, image processing, and more.
Create and inspect NumPy arrays using the array function, build a two row matrix, and explore indexing, slicing, boolean masks, and the nonzero function to locate even elements.
Master creating a numpy zero-filled array with zeros_like, learn why references share data, and use copy to edit elements independently without affecting the original array.
Explore how to change arrays' shape using stacking, splitting, and reshaping in numpy, including vstack, hstack, stack, vsplit, hsplit, expand_dims, np.newaxis, reshape, and flatten.
Learn to perform numpy array arithmetic using full and full_like, including add, subtract, multiply, divide, and exponentiation; explore axis-based sums and a normal distribution plot.
Learn how NumPy broadcasting rules apply a single element across arrays with different shapes during operations, illustrated by range-based multiplications, vector additions, and a 4x4 matrix with reshaped vectors.
Master numpy operations: find min and max, sort with axis, use argsort, create ones, identify unique values, concatenate and flip arrays, and save or load in npy or csv.
Explore how NumPy's random number generator creates arrays of random values, samples from distributions like standard normal, and selects or shuffles elements to support machine learning workflows.
Generate samples from a guy square distribution, a Poisson distribution, and a normal distribution; visualize with histograms and compare mean, standard deviation, and the median via the Quandialla function.
Explore NumPy linear algebra by building an identity matrix with eye, computing transpose, trace, determinant, and performing matrix multiplication; then examine eigenvectors, eigenvalues, and diagonal reconstruction using diagflat.
Explore image manipulation with NumPy by using singular value decomposition on a color image, bringing channels to the front and reconstructing a low-rank image from the top singular values.
Explore the Julia set, a fractal from chaotic dynamics, by using complex numbers and NumPy to generate a 2000 by 2000 grid and visualize the result with Matplotlib.
In this course you will learn to use the NumPy library fluently. NumPy is a numerical computation library extensively used in data science, machine learning and statistics. In fact, many other libraries in these fields rely on NumPy arrays to deliver their functionality efficiently. In the area of data science and machine learning we often work with tabular data, which can be represented very well by NumPy arrays. In the course you will learn how to work with n-dimensional arrays and how to manipulate them comfortably to solve complex tasks in different domains.
NumPy processes matrix operations extremely efficiently, offering low execution time and memory usage. Its functionality is implemented in the C programming language: a very efficient compiled language. This functionality is executed from the Python interface with a simple declarative syntax.
The course is divided into 12 lessons:
- Introduction to the NumPy library.
- Creating, indexing and slicing NumPy arrays.
- Copying and editing NumPy arrays.
- Stacking and restructuring NumPy arrays.
- Arithmetic operations with NumPy arrays.
- Operations with NumPy arrays of different shapes.
- Concatenation, reversion and persistence of NumPy arrays.
- Applications of NumPy - Random number generation
- Applications of NumPy - Statistics
- Applications of NumPy - Linear algebra
- Applications of NumPy - Image manipulation
- Applications of NumPy - Chaotic dynamical systems
At the end of the course, you will know how to create arrays using different methods, manipulate them and perform mathematical operations with them.