AswinThampyDr Aswin Thampy
← All practice guides

Practical Python · Beginner Python

Analyse missed appointments with Python

Use synthetic data to calculate weekly missed-appointment rates and plan one small improvement.

A 60-minute synthetic-data starter

What you’ll have at the end

A checked weekly table, a simple chart and an annotated improvement plan.

How to begin

What to measure

Try it with synthetic data

Download both files into one folder, then run:

python analyse_appointments.py synthetic_appointments.csv
Download Python starter Download synthetic CSV

Output is a weekly CSV on your computer. Your data does not travel to this website.

Before using real data

Aggregates can still identify people through small groups. Agree suppression and generalisation locally. Do not create patient-level non-attender scores or punitive access decisions. The starter uses synthetic data only.

Agree scope, data handling, supervision and escalation with your practice. Use approved systems. Do not upload patient information to this website or a public AI tool.

Sources