flowchart LR
A["1. Import π"] --> B["2. Explore π"] --> C["3. Clean π§Ή"]
C --> D["4. Filter π―"] --> E["5. Sort π"] --> F["6. Transform π§"]
F --> G["7. Group π₯"] --> H["8. Aggregate π"] --> I["9. Join / Reshape π"]
I --> J["10. Visualize π"]
Almost every data analysis you will ever do, in this course and in your career, is some path through the same ten steps. Most analyses use a subset of them, and they come in this order. On Day 1 you played through a short path, the βWhole Game.β Over the following days you will learn each step in depth.
The ten steps
- Import. Load your data from a file or URL into a pandas DataFrame, which is a table.
- Explore. Look at the tableβs shape, columns, types, and summary statistics so you understand what you actually have.
- Clean. Fix missing values, wrong data types, and duplicate rows so the data is trustworthy.
- Filter. Keep only the rows that match a condition you care about.
- Sort. Reorder the rows by the values in one or more columns.
- Transform. Build new columns from existing ones, such as calculations, conversions, or categories.
- Group. Split the rows into buckets that share a common key.
- Aggregate. Collapse each bucket down to a single summary number, like a mean, sum, or count.
- Join / Reshape. Combine multiple tables, and pivot or stack the data into the shape your analysis needs. This includes adding a time dimension with dates.
- Visualize. Turn your numbers into charts that reveal the story.
Where youβll learn each step
Each step gets its own teaching day. Everything in the course maps back to this table:
| # | Step | What it does | Youβll learn it on |
|---|---|---|---|
| 1 | Import | Load data into a DataFrame | Day 2: Import + Explore |
| 2 | Explore | Get to know the table | Day 2: Import + Explore |
| 3 | Clean | Fix missing values, types, duplicates | Day 4: Clean + Transform |
| 4 | Filter | Keep only the rows you want | Day 3: Filter + Sort |
| 5 | Sort | Order rows by a column | Day 3: Filter + Sort |
| 6 | Transform | Build new columns | Day 4: Clean + Transform |
| 7 | Group | Split rows into buckets by a key | Day 5: Group + Aggregate |
| 8 | Aggregate | Collapse each bucket to a number | Day 5: Group + Aggregate |
| 9 | Join / Reshape | Combine tables; add a time dimension | Day 6: Join + Reshape + Dates |
| 10 | Visualize | Turn numbers into pictures | Day 7: Visualize |
Days 8 and 9 put the whole workflow together in your own project.
The Data Biography
Coming on Day 2.
Key Points
- Real analyses are paths through these ten steps, always in this order, though few analyses use every step.
- Days 2 through 7 each teach one or two steps. Day 1βs βWhole Gameβ gives you the big picture first.
- When you feel lost later in the course, come back here and ask yourself which step you are on.
Resources
- The Whole Game, Part 1 and Part 2 are Day 1βs run through the workflow.
- Course Cheatsheet: Workflow Methods
- Course Cheatsheet: First Steps