Boolean Indexing with NumPy

Learn how to select data based on their values.


  • Learn to create boolean arrays based on data values.
  • Learn to use boolean arrays to select specific rows and columns.
  • Learn to use boolean indexing to perform data analysis.

Mission Outline

1. Reading CSV files with NumPy
2. Reading CSV files with NumPy Continued
3. Boolean Arrays
4. Boolean Indexing with 1D ndarrays
5. Boolean Indexing with 2D ndarrays
6. Assigning Values in ndarrays
7. Assignment Using Boolean Arrays
8. Assignment Using Boolean Arrays Continued
9. Challenge: Which is the most popular airport?
10. Challenge: Calculating Statistics for Trips on Clean Data
11. Next Steps
12. Takeaways


Course Info:

Pandas and NumPy Fundamentals


The median completion time for this course is 6.77 hours.

This course requires a basic subscription and includes five missions and one guided project.  It is the third course in the Data Analyst in Python path and Data Scientist in Python path.


Take a Look Inside