# African Health Data Pipeline π
A production-style ETL data pipeline that extracts real health data from the WHO Global Health Observatory API, transforms and validates it, and loads it into a cloud PostgreSQL database (Neon).
Built by **Albright Ndamati** β Medical Doctor and Data Engineer
---
## Why I Built This
As a medical graduate, I've seen firsthand how poor health data infrastructure affects healthcare delivery across Africa. This project combines my clinical background with data engineering skills to build a system that makes African health metrics accessible, clean, and queryable.
This project is also foundational to **DAAL** β my preventive digital health platform for Africa.
---
## What It Does
Extracts real WHO health data for 15 African countries including:
- Nigeria, Ghana, Kenya, South Africa, Ethiopia
- Tanzania, Uganda, Senegal, Zambia, Zimbabwe
- Cameroon, Angola, Mozambique, Egypt, Ivory Coast
Tracks 3 key health indicators:
- Life Expectancy (2000-2024)
- Child Mortality Rate (2000-2024)
- Malaria Incidence (2000-2024)
**Total: 4,245 validated records loaded into cloud PostgreSQL**
---
## Pipeline Architecture
WHO GHO API β extract.py β transform.py β load.py β Neon PostgreSQL
β β β
raw_data.csv clean_data.csv health_metrics table
Run the full pipeline with one command:
```bash
python pipeline.py
```
---
## Tech Stack
- **Python 3.11** β Core language
- **Pandas** β Data transformation and validation
- **SQLAlchemy** β Database ORM
- **PostgreSQL (Neon)** β Cloud database
- **WHO GHO API** β Real health data source
- **Git** β Version control
---
## Project Structure
african_health_pipeline/
βββ extract.py # Pulls data from WHO API
βββ transform.py # Cleans and validates data
βββ load.py # Loads into PostgreSQL
βββ pipeline.py # Runs full ETL pipeline
βββ .env # Database credentials (not committed)
βββ .gitignore
βββ README.md
---
## How to Run
```bash
# Clon β¦