Skip to content

ruthwtalbot/us-elections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

us-elections

Data processing steps:

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published