Page:
Home
Pages
Getting Started da
Getting Started ms
Getting Started
Home da
Home ms
Home
Step 1 Colours da
Step 1 Colours ms
Step 1 Colours
Step 2 Sets da
Step 2 Sets ms
Step 2 Sets
Step 3 Sets per Year da
Step 3 Sets per Year ms
Step 3 Sets per Year
Step 4 Themes per Year da
Step 4 Themes per Year ms
Step 4 Themes per Year
Step 5 Two Axes da
Step 5 Two Axes ms
Step 5 Two Axes
Step 6 Parts per Set da
Step 6 Parts per Set ms
Step 6 Parts per Set
Step 7 Themes and Keys da
Step 7 Themes and Keys ms
Step 7 Themes and Keys
Step 8 Merge da
Step 8 Merge ms
Step 8 Merge
Step 9 Bar Chart da
Step 9 Bar Chart ms
Step 9 Bar Chart
Summary da
Summary ms
Summary
Clone
1
Home
Tirsvad edited this page 2026-11-12 01:50:39 +01:00
Table of Contents
English · Dansk · Bahasa Malaysia
LEGO Analysis for Course
Day 74 of Udemy's 100 Days of Code: aggregate and merge data in Pandas while analysing a LEGO dataset. This wiki explains what each lecture step teaches. Every step has a screenshot generated from the code.
| Page | What you gain |
|---|---|
| Getting started | A .venv, the install and how to run and test the project |
| Step 1: Exploring the brick colours | How many colours does LEGO make, and how many are transparent? |
| Step 2: The oldest and the largest sets | When were the first sets released, how many were there, and which set has the most parts? |
| Step 3: Sets released per year | How did the number of released sets change over time? |
| Step 4: Themes per year with .agg() | How many different themes did LEGO sell each year? |
| Step 5: Two axes in one chart | How can sets and themes share one chart when their scales differ? |
| Step 6: Average parts per set | Did LEGO sets grow in size and complexity? |
| Step 7: Themes, primary keys and foreign keys | Which theme names belong to the theme ids, and how are the tables linked? |
| Step 8: Merging DataFrames on a key | How do we combine the number of sets per theme with the theme names? |
| Step 9: A bar chart of the top 10 themes | Which themes have the most sets? |
| Summary | Everything the lecture taught, in one list |
The five questions of the assignment: the largest set, the first year and its sets, the theme with the most sets, the growth of sets and themes per year, and whether sets grew in size.
LEGO Analysis for Course
- Home
- Getting Started
- Step 1 Colours
- Step 2 Sets
- Step 3 Sets per Year
- Step 4 Themes per Year
- Step 5 Two Axes
- Step 6 Parts per Set
- Step 7 Themes and Keys
- Step 8 Merge
- Step 9 Bar Chart
- Summary
Languages