Lecture 5: Numpy
Contents
Lecture 5: Numpy#
In this lecture, we will introduce you to the numerical Python library numpy. Numpy is used almost in every field of science and engineering. This library provides the universal standard for working with numerical data in Python, and it also the essential scientific tool.
How to create basic arrays
Basic array operations
Indices and slicing.
Iterating over a numpy array
Sorting, adding and removing elements of an array
Broadcasting.
Using a particular axis.
Summary Exercises.
The weekly tasks are split up into a series of sequential notebooks. Any of these can be opened below by clicking on them. The first 4 notebooks are all interactive notebooks, where you will run and/or write code in the cells. To open any of the notebooks interactively, first click on the section, then click on the rocket and select “Colab”.
Weekly tasks#
- Introduction
- Introduction - SOLVED
- How to create basic arrays
- How to create basic arrays - SOLVED
- Basic array operations
- Basic array operations - SOLVED
- Indexing and Slicing
- Indexing and Slicing - SOLVED
- Iterating over an numpy array
- Iterating over an numpy array - SOLVED
- Sorting, adding and removing elements from an array
- Sorting, adding and removing elements from an array - SOLVED
- Broadcasting
- Broadcasting - SOLVED
- Using a particular axis of an array
- Using particular axis of an array - SOLVED
- Summary Exercises
- External links to other numpy tutorials
- Summary Exercises - SOLVED
- External links to other numpy tutorials