13,493 bed requests · 52 weeks · 4 services → the number that matters: 56.6% of demand refused.
A data analysis of a year of hospital operations — bed capacity, demand, staffing, and disruption events — built from four raw CSV files with Python, Pandas, and Matplotlib. Every number on this page is produced by a script in this repository, run against the source data. Nothing is estimated and nothing is copied from elsewhere.
Note
Why this stands out: the analysis finds the problem where the obvious metric can't see it. Bed utilization is 100% for emergency — every week — because admissions are capped by beds. The admission refusal rate is what exposes the gap: 80.9% of emergency requests are refused. And a second layer — event-level analysis — finds that staff morale collapses in strike weeks (53.7 vs 73.1 baseline) even though workload shows zero correlation. Both findings come from the same small dataset and two re-runnable scripts.
- Executive Summary
- Business Problem
- Headline KPIs
- Dataset
- Analysis Pipeline
- Key Insights
- Business Recommendations
- Engineering Decisions
- Repository Structure
- Quick Start
- Known Limitations
- About the Author
A hospital runs four services — emergency, surgery, general medicine, and ICU — against a fixed weekly bed supply. In 2025, 7,642 of 13,493 bed requests (56.6%) were refused. This project turns the four raw CSV extracts behind that number into a verified picture of where the capacity gap is worst, when demand peaks, and how staffing and disruption events shape outcomes.
The workflow is a single reproducible pipeline: scripts/analyze_data.py computes every
KPI and writes a JSON report; scripts/generate_charts.py renders the visualizations from
the same pipeline. Run both, get this analysis. No database, no dashboard tool, no
hand-made figures.