Lesson 3.5 · Pro
Buckets and histograms
Group numbers into ranges, count each range, and keep the ranges in their natural order.
In this lesson
- Make ranges with CASE
- Keep buckets in order
- Equal-width buckets with width_bucket
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.