Introduction to NumPy
2023-08-14 , HS 120

NumPy is one of the foundational packages for doing data science with Python. It enables numerical computing by providing powerful N-dimensional arrays and a suite of numerical computing tools. In this tutorial, you'll be introduced to NumPy arrays and learn how to create and manipulate them. Then, you'll see some of the tools that NumPy provides, including random number generators and linear algebra routines.


This tutorial will introduce numerical computing with Python and the NumPy library. It's intended for people new to NumPy and Python's scientific stack or those needing a refresher.

In this tutorial, you'll learn about different ways to create NumPy arrays. You'll see how to pull out individual elements or sub-arrays from them. Even more importantly, you'll learn about broadcasting and vectorization. These are NumPy's superpowers that help you write readable and fast code.

NumPy's arrays are the foundational building blocks. However, you'll also dip your toes into some of the numerical computing tools that are part of the library. In particular, you'll learn the best practices for working with random numbers in NumPy. Furthermore, you'll see how to perform linear algebra operations like matrix addition, multiplication, and inversion.

The workshop consists of 90 minutes of live code demonstrations and hands-on exercises.


Abstract as a tweet:

Learn the basics of NumPy, Python's foundational library for numerical computing

Category [High Performance Computing]:

Parallel Computing

Category [Community, Education, and Outreach]:

Learning and Teaching Scientific Python

Category [Machine and Deep Learning]:

Supervised Learning

Category [Scientific Applications]:

Astronomy

Category [Data Science and Visualization]:

Data Analysis and Data Engineering

Expected audience expertise: Domain:

none

Expected audience expertise: Python:

some

Geir Arne teaches Python at Real Python. He has a background in mathematics and has worked with data analysis in different fields, such as electricity markets, satellite geodesy, and computer vision. In his spare time, Geir Arne enjoys hammock camping, square roots, and aimless forest wandering.