Purpose: This repo contains utility scripts for parsing and analyzing municipal voting records from 2024 onward.
Use case: Intended for election enthusiasts and others tracking precinct-level vote trends.
- Seattle, WA
- New York, NY
- Miami, FL
- Chicago, IL
- Portland, OR*
- Las Vegas, NV
- Minneapolis, MN
- Denver, CO
- Philadelphia, PA
- San Francisco, CA
- San Diego, CA
- San Jose, CA
- Madison, WI
- Atlanta, GA*
- Pittsburgh, PA
*: Precinct boundaries were approximated in areas where misalignments occured between official city limits and available precinct shapefiles
- Seattle (Seattle City Proposition Nos. 1A and 1B)
- November 2024 General Election Results - Final precinct level election results - Comma delimited file (Download Link)
- Voting Districts of King County / votdst area - Shapefile (Download Link)
- "2024 Precinct-Level Election Results." New York Times, www.nytimes.com/interactive/2025/us/elections/2024-election-map-precinct-results.html. Accessed [05/01/2025].
- "2024Precincts" @21MetcalfJ
- IPUMS NHGIS, University of Minnesota, www.nhgis.org
- Map data from OpenStreetMap
- I used AI to scaffold plotting loops and CSV parsing loops.
- I then manually adapted the boilerplate code to:
- Match voting data with precinct shapefiles by converting precinct ID formats
- Set canvas bounding boxes to municipal boundaries (extracted via Overpass Turbo API queries)
- Aggregate precinct-level voting data from multiple sources into a single GeoPandas DataFrame
- For coastal regions, clip official voting precinct shapefiles to coastline data from NHGIS




