# 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 âŠ