Italian Regional Elections Data Analysis

A deep dive into the 2024 regional elections across Italy, using real-time data collection and visualization to reveal voting patterns and trends.

Behind the Data

Data Collection

Used Python to access and process real-time election data through the Italian Ministry of Interior's API system, enabling immediate updates as results came in.

Analysis

Used pandas and numpy to track voter turnout, calculate margins, and compare results with historical data across all municipalities.

Visualization

Created interactive maps and charts using Datawrapper to reveal geographical patterns and temporal trends in voting behavior.

Select Region

Select Data View

Technical Process

This project uses Python to access and process election data in real-time through the Italian Ministry of Interior's undocumented API. The process involves:

  • Automated data collection using custom Python scripts
  • Real-time processing of voter turnout and results
  • Geocoding of electoral data for mapping
  • Integration with Datawrapper for interactive visualizations

All code and documentation is available on GitHub, allowing for transparency and reproducibility of the analysis.