M5: NumPy

This module provides an introduction to NumPy, a Python library for working with large contiguous, and multidimensional arrays of data.

Pre-recorded Lectures

The pre-recorded lectures are available through Canvas.

The lectures include a video to introduce the instructor and module (“Introduction”) and a series of 5-10 minute videos:

  • 5.0 - Introduction

  • 5.1 - Motivation for NumPy

  • 5.2 - Creating arrays

  • 5.3 - Array Indexing

  • 5.4 - Working with arrays

  • 5.5 - Advanced Array Manipulations

  • 5.6 - Extended example: Standardizing Features

Textbook Chapters

The chapters corresponding to this module is NumPy

A PDF version of the textbook is also available here.

You will be asked to log in with your CNetID before you can see the textbook.

Please note that the pre-recorded lectures cover largely the same material as the book. We recommend starting with the pre-recorded lectures, and then reading through the book (but do not feel bad if you find yourself skipping large portions of the textbook, if you feel they tread on material that you already understood when watching the lectures)

Zoom Sessions

You will find the links to the Zoom sessions on Canvas.

  • Week 5
    • Wednesday, November 11th: Lab #5

    • Friday, November 13th: Q&A and extended example

Lab

Lab #5: NumPy

In the lecture on November 11th, we will be working through a few of the problems in this lab. You are not expected to complete the lab before that lecture, but you should try to read through it so you are familiar with its contents.

Short Exercises

Short Exercises #5, due Sunday, Nov 15 at 3pm CST

Programming Assignment

Programming Assignment #5, due Friday, Nov 20 at 3pm CST