

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Aggregation
incomplete
2: Grouping With Dictionaries
incomplete
3: Grouping in Pandas
incomplete
4: Category Type
incomplete
5: Grouping by Multiple Columns
incomplete
6: Multiple Aggregations
incomplete
7: Named Aggregations
incomplete
8: Custom Aggregations
incomplete
9: Pivot Tables
incomplete
10: Pivot Table Aggregations
incomplete
11: Star Schema
incomplete
12: Grain Validation
incomplete
13: Fixing Grain Violations
incomplete
14: Building a Data Model
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Raw data is usually rows of individual events: one order, one click, one transaction. Business questions, on the other hand, are usually about summaries.
"What's our total revenue by region?"
"How many orders did each customer place?"
"What's the average order value by product category?"
You don't answer these by reading individual rows, but rather by aggregating: grouping rows together and calculating summary statistics. Common aggregations include:
Sums
Medians
Counts
Averages
Minimums and maximums
etc
Aggregations take you from 10,000 "raw" order rows to 50 category-level summaries.