Lab 2 — The revenue the brief did not ask for
The file: data/raw/online_retail.parquet — the shop's invoice lines. The brief: finance's definitions of every number, in the README and the notebook.
The symptom: the report runs without an error and says 2010 revenue was £8,739,637.52 and the average identified customer brought in £2,052.52. Its own per-customer table does not average to £2,052.52. And every number has a sentence in the brief.
First minute: the clone finished? Open the folder in VS Code, open notebooks/report.ipynb, pick the .venv kernel, run the first cell: it prints the Lab 2 folder.
Your work, in report.ipynb, top to bottom. A: run the three supplied inspections and paste what they show into your note. B: the brief's filter, written once as a view sales_2010, then the census again on it. C: revenue by month, from an empty cell. D: the five countries with the most invoices, from an empty cell. E: the check: your view against the raw file, your months against your view, both to the penny. Then DIAGNOSIS.md. After the note, if there is time: F, the per-customer figure (also HW1 question 7). Neighbour at minute 33. Checkpoint on Moodle. The syntax is on one page: REFERENCE-sql.md; the full reference, with a task index, is on the course site.