US County Presidential Election Data
Provides access and standardized implementation logic for MIT MEDSL county-level U.S. presidential election returns from 2000 to 2024.
This skill provides a specialized interface and domain-specific guidance for working with the MIT Election Data and Science Lab (MEDSL) dataset via Harvard Dataverse. It enables researchers and developers to fetch, clean, and analyze presidential vote shares, party trends, and turnout metrics at the county level. The skill includes critical technical logic for handling 2020+ 'TOTAL' mode reconstruction to prevent silent data loss, standardized FIPS code padding for seamless joins with Census/ACS datasets, and state-specific quality notes for geographic anomalies in Alaska, Connecticut, and Arkansas.
Key Features
01Specialized 3-pattern reconstruction for accurate 2020-2024 'TOTAL' vote counts
02Standardized FIPS code zero-padding for reliable Census and SAIPE data joins
031,853 GitHub stars
04Built-in data quality alerts for handling historic geographic anomalies and FIPS shifts
05Automated Harvard Dataverse API integration for direct election data fetching
06Comprehensive party and mode encoding tables for consistent longitudinal analysis
Use Cases
01Mapping voting method shifts (Election Day vs. Mail-in) using 2020 and 2024 mode breakdowns
02Analyzing longitudinal partisan voting trends across all US counties from 2000-2024
03Correlating presidential election results with socioeconomic variables from Census or education datasets