Skip to content

Latest commit

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Meteorological Impact on European Energy Consumption

PySparkPython

Analyzing 590K+ observations across 32 European countries to quantify how weather extremes affect electricity consumption and renewable energy production.

Overview

This project uses Apache Spark (PySpark) to process large-scale meteorological and energy datasets, revealing statistically significant relationships between weather conditions and energy demand across Europe.

Key finding: Heatwaves (>25°C) increase average electricity consumption by +16.8%, while extreme cold (<0°C) shows a -12.3% decrease at the European level — with significant country-level variation (e.g., Germany shows +8.4% during cold spells due to electric heating).

Key Results

Weather-Energy Correlations

RelationshipPearson rInterpretation
Temperature × Consumption0.007 (global)Season-dependent
Solar radiation × Solar production0.231Moderate positive
Wind speed × Wind production0.262Moderate positive

Impact of Extreme Temperatures (ANOVA p = 1.48e-21)

PeriodAvg ConsumptionΔ vs Normal
Normal (0–25°C)10,955 MW
Heatwave (>25°C)12,794 MW+16.8%
Extreme cold (<0°C)9,610 MW-12.3%

All pairwise differences are statistically significant (p < 0.001, t-test).

Architecture

Data Sources (OPSD + Open-Meteo API)
→ Ingestion & Chunking
→ PySpark Transformation (unpivot, aggregation)
→ Feature Engineering (join weather + energy)
→ Statistical Analysis (ANOVA, t-tests, correlations)
→ Visualization (Matplotlib, Seaborn)

Dataset

Tech Stack

  • Big Data: Apache Spark 3.5.1, PySpark
  • Analysis: pandas, NumPy, SciPy (ANOVA, t-tests)
  • Visualization: Matplotlib, Seaborn
  • Environment: Google Colab / Jupyter

Quick Start

git clone https://github.com/Bassongo/spark-energy-weather-analysis.git
cd spark-energy-weather-analysis
pip install pyspark==3.5.1 pandas numpy scipy matplotlib seaborn openpyxl
jupyter notebook energy_weather_analysis.ipynb

Project Structure

├── README.md
├── energy_weather_analysis.ipynb # Main analysis notebook
└── requirements.txt

Limitations & Future Work

  • Correlations ≠ causation; confounding variables (holidays, events) not controlled
  • Daily aggregation masks intra-day peaks
  • Next steps: ML-based demand forecasting, extended time range (2010–2024), per-country deep dives

Team

Academic project — Big Data & Cloud Computing (BDCC 2025)

NameRole
Mouhammadou DiaStatistical Analyst
Kouami Emmanuel DossekouStatistical Analyst
Marc MareStatistical Analyst
Ndeye Salla ToureStatistical Analyst

Author

Marc MareGitHub ENSAE Dakar | MSc SEP, University of Reims (2026)

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages