In this lesson, you'll learn the fundamentals of NumPy. NumPy stands for Numerical Python and is a Python package that can be used for numerical computing. Numpy is at the center of most Python libraries for data science and machine learning.

More specifically, you'll:

  1. Learn how to import and use the NumPy library
  2. Learn about n-dimensional arrays, the core data structure of NumPy
  3. Learn how to manipulate 1-dimensional and 2-dimensional arrays

As with all Dataquest lessons, this is an interactive learning experience. You'll be writing real Python code and using NumPy in our browser-based coding environment so there's no setup and no obstacles between you and learning!

Objectives

  • Learn how to import and use the NumPy library
  • Learn how to manipulate 1-dimensional and 2-dimensional arrays

Lesson Outline

  1. Introduction
  2. Introduction to ndarrays
  3. Accessing Values in an ndarray
  4. Slicing ndarrays
  5. The Slicing Increment
  6. Copying an ndarray
  7. Negative Indexes and Steps
  8. Two Dimensional Arrays
  9. Slicing Two Dimensional Arrays
  10. Setting the Slice Value
  11. Selecting Rows and Columns
  12. Next Steps