- Download data from https://electionlab.mit.edu/data
- Run combine.py to separate out data by year
- Run ogr2ogr command to combine csv with geo data:
- ogr2ogr -sql "select inshape., . from inshape left join '.csv'. on on inshape.GEOID = .FIPS" shape_join.shp inshape.shp
- Create geojson file from shapefile
- ogr2ogr -f GeoJSON .json shape_join.shp
- Opt: create topojson file
- topojson .json -o .json -p
-
Notifications
You must be signed in to change notification settings - Fork 0
ruthwtalbot/us-elections
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published