# african-econ-pipeline
# π African Economic Intelligence Pipeline
A production-style data engineering pipeline that ingests World Bank economic indicators for 48 African countries, transforms them through a layered data model, orchestrates runs with Apache Airflow, and visualises insights in Power BI.
---
## π Architecture
```
World Bank API
β
βΌ
Python (Google Colab)
- Fetches 8 indicators Γ 48 countries Γ 24 years
- Cleans, parses, and loads to BigQuery
β
βΌ
Google BigQuery
african_economics_raw.world_bank_indicators
β
βΌ
dbt Cloud
βββ staging: stg_world_bank_indicators (view)
βββ marts: dim_countries (table)
βββ marts: fct_economic_indicators (table)
β
βΌ
Apache Airflow (Docker)
- Schedules weekly pipeline runs
- DAG: ingest β dbt staging β dbt marts
β
βΌ
Power BI
- Continental Overview (Page 1)
- Country Deepdive (Page 2)
```
---
## π Dashboard
The Power BI dashboard has two pages:
**Page 1 β Continental Overview**
- KPI cards: 48 countries tracked, average GDP growth, largest economy, fastest growing economy
- Africa map coloured by GDP size
- Top 10 economies bar chart
- Year slicer (2000β2023)
**Page 2 β Country Deepdive**
- Country slicer β select any of 48 countries
- KPI cards: GDP per capita, inflation rate, unemployment rate, trade % of GDP
- GDP growth rate over time (line chart)
- FDI net inflows over time (line chart)
- Inflation over time (line chart)
- Top 10 economies by GDP (bar chart)
Dashboard files are in the `/dashboard` folder (PDF and PowerPoint).
---
## ποΈ Repository Structure
```
african-econ-pipeline/
βββ ingestion/
β βββ african_econ_pipeline_m1.py # World Bank API β BigQuery
βββ dbt/
β βββ models/
β βββ staging/
β β βββ sources.yml
β β βββ stg_world_bank_indicators.sql
β βββ marts/
β βββ dim_countries.sql
β βββ fct_economic_indicators.sql
βββ dags/
β βββ african_econ_dag.py # Airflow DAG
βββ dashboard/
β βββ African_Economic_Intelligence.pdf
β βββ Afri β¦