NumPy · Lesson 3.2 · Pro
Unique values and counts
Find the distinct values, count how often each appears, and group numbers into ranges.
In this lesson
- Distinct values with np.unique
- Counting each value
- Counting small whole numbers with bincount
- Group into ranges with np.histogram
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.