CurriculumWeek 03 · Data and the outside world
Week 03 · starts Jun 01
Data and the outside world
The week the course earns its title — analyzing real data, calling a real API.
Upcoming
Sessions
- 03.01CSVs and a friendly intro to pandas~30 min readOpen →What a CSV is. Reading one with the standard library, then with pandas.
head()and column access.~30 min readOpen → - 03.02Filtering, sorting, grouping~28 min readOpen →Boolean filtering,
sort_values,value_counts,mean, and a light touch ofgroupby.~28 min readOpen → - 03.03Calling an API~30 min readOpen →What an API actually is. The
requestslibrary. A GET request, parsing JSON, and a little error handling for the network.~30 min readOpen →
Practice exercises for this week
short · graded
- wk03.p4Cohort score summary with statistics~25–35 minView →Import the
statisticsbox and let it do the maths. Write one function that takes a list of scores and reports the average and the middle value — the five-line averaging loop, replaced by a function someone else already wrote.~25–35 minView → - wk03.p5Days-until-the-deadline countdown~25–35 minView →Use the
datetimebox to answer a question that's tedious by hand: how many days until an application closes? Subtract one date from another and let Python count for you.~25–35 minView → - wk03.p6Ask an AI what else is in the box~20–30 minView →You know
random.randintandrandom.choice. But what *else* is in that box? Learn the one skill that unlocks every library — ask an AI to list a library's functions — then run two of them yourself to prove they are real.~20–30 minView → - wk03.p7Which library for which job?~30–45 minView →Real programming starts with a question: "is there already a library for this?" Here are three everyday situations — each one explained in plain words — and your job is to find the Python library that handles it, using an AI and a quick web search.~30–45 minView →
- wk03.p8Trust, but verify~25–35 minView →An AI will happily explain any function — and now and then it is slightly wrong, or invents one that does not exist. Learn the habit that keeps you safe: ask, then run it yourself to check.~25–35 minView →
- wk03.p9Adopt a library~30–45 minView →Run the whole six-step move on a library nobody taught you. Pick a small problem you actually have, find a box for it, install it, and make something real you can screenshot.~30–45 minView →
- wk03.p1Read a real CSV with pandas~30–45 minView →Pick a small dataset, load it with pandas, peek at the rows, count them, and pull out a single column. The smallest honest data workflow.~30–45 minView →
- wk03.p2Slice the data — filter, sort, group~45–60 minView →Take the same CSV from the previous practice. Filter it, sort it, group it. Then write three plain-English findings.~45–60 minView →
- wk03.p3Top five rows per category~45–60 minView →Take a CSV, group it by a category column, and pull out the top five rows from each group. Pandas at its most useful.~45–60 minView →
Assignment for this week
Research data summary tool
Either summarize a CSV with pandas, or call a public API, save it to CSV, and print three useful insights.
Due Sun, Jun 07 · 9:00 pm
Read brief →in 3 weeks