# π Africa Remittance Cost Analysis
An end-to-end data pipeline and investigative analytics project examining the true cost of sending money to, from, and within Africa β using real World Bank data spanning 2016 to 2025.
---
## π The Finding That Started Everything
> A Tanzanian bank charges **91%** to send money to Uganda.
> Western Union charges **8%** on the exact same route.
> Same corridor. Same quarter. 10x the price.
This project was built to understand why β and whether Africa is on track to meet the UN SDG 10.c target of **3% remittance costs by 2030**.
**Spoiler: The trend is going the wrong direction.**
---
## π Dashboard Preview
### Page 1 β The Big Picture
### Page 4 β The Deep Dive
> Built in Power BI, connected live to PostgreSQL.
---
## ποΈ Project Architecture
```
World Bank Excel (47,000+ rows)
β
clean_data.py β Python + Pandas (Extract, Transform)
β
PostgreSQL β africa_remittances table (Load)
β
main.py (FastAPI) β REST API serving analytics endpoints
β
Power BI Dashboard β 4-page live visualization layer
```
---
## π Repository Structure
```
africa-remittance-analysis/
β
βββ clean_data.py # Data cleaning & ingestion pipeline
βββ check_sheets.py # Data validation & column inspection
βββ main.py # FastAPI application
βββ queries.sql # Key analytical queries
βββ africa_remittances_clean.csv # Cleaned Africa-filtered dataset
βββ README.md
```
---
## βοΈ Pipeline Breakdown
### 1. Ingestion & Cleaning (`clean_data.py`)
- Loads the World Bank Remittance Prices Worldwide dataset (Excel)
- Filters for all Africa-related corridors bidirectionally β rows where Africa is either the source or destination
- Removes promotional noise (negative cost percentages) that would distort analysis
- Classifies each transaction into one of three flow types:
- `Intra-Africa` β both source and destination are African countries
- `Outbound (Africa to β¦