pandas · Lesson 2.3 · Pro
Filtering rows
Keep the rows you want with True/False masks, and combine conditions with &, | and ~.
In this lesson
- A mask keeps rows
- Combine with & and |
- Not: ~
- Count and share with masks
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.