Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

yasinemegherbi21-byte/Morocco-Macroeconomic-ETL

Domaine:

climatesocioeconomic
Créateur:
yas
Hôte:
A Python and PostgreSQL ETL pipeline analyzing how climate changes affect the economy and unemployment in Morocco. # Morocco Climate Shock & Macroeconomic Transmission Pipeline An end-to-end data engineering pipeline that extracts regional historical time-series indicators, processes structural transformations within a localized PostgreSQL database environment, and evaluates predictive matrices using an ensemble machine learning algorithm to quantify how climate-induced agricultural shocks transmit into macroeconomic labor markets. --- ## 1. System Architecture Layer The infrastructure manages data through a decoupled execution flow to maintain environment cleanliness and optimized processing speeds: * **Ingestion & ETL Engine:** Implemented via a vectorized Jupyter Notebook framework managing extraction and linear forward-filling interpolation to eliminate trend distortion. * **Data Warehouse Layer:** A relational PostgreSQL instances housing the structured, optimized analytics schema (`morocco_economic_trends`). * **Analytics Interface:** A streamlined, enterprise-grade data product built natively in Streamlit for real-time model inference and trend tracking. --- ## 2. Technical Stack & Dependencies To maintain a minimal structural footprint, the pipeline operates strictly on core production libraries without workspace bloat: * **Database Engine:** PostgreSQL 16 / SQLAlchemy Connection Pooler * **Data Processing:** Pandas / NumPy * **Predictive Compute:** Scikit-Learn (Ensemble Random Forest Engine) * **Interface Layer:** Streamlit Architecture --- ## 3. Data Schema & Provenance The system integrates data spanning from 1990 to 2024, enforcing strict typed constraints within the PostgreSQL instance: | Column Name | Database Type | Description / Metric Mapping | | :--- | :--- | :--- | | `Year` | `INT` (Primary Key) | Temporal tracking baseline | | `Crop_Index` | `FLOAT` | Normalized Crop Production Index (Ecological Baseline) | | `Unemployment_Rate` | `FLOAT` | National Unemployment Percentage (Target Variable) | | `Agriculture_GDP_Share`| `FLOAT` | Percentage share …

Visit

github.com

Similaires

yasinemegherbi21-byte/morocco-afcon-worldcup-economic-pipelineYahyaHajji/morocco-business-intelligence-etl

yasinemegherbi21-byte/morocco-afcon-worldcup-economic-pipeline

End-to-end data engineering pipeline analyzing Morocco's economic, tourism, infrastructure, and host

YahyaHajji/morocco-business-intelligence-etl

Python ETL and dimensional Power BI model for Moroccan coworking spaces and marketing agencies. # M