Open PDAMANY opened 7 years ago
I got started on a script to pull ACS data for all 50 states at the state legislative district upper and lower chamber levels. This is just the script; it uses an API key that I requested from the Census Bureau.
Current variables include:
A maximum of 50 fields can be downloaded at once. The list of available variables can be found here.
Notes on the project, including variable names and resources and which variables are included in this version of the script, can be found here.
2017 List of states
[ ] VA
[ ] NJ
[ ] MS
[ ] LA
Data inputs
Breakdown of total population, total eligible voters by county and district (and turnout)
List of 2017 races by state, which ones are uncontested, which ones have an incumbent, how long have they been in office, how long is their term, are they in a term limited state? % of seats win by >10% margin.
Past election results by seat (last 10 yrs or just last midterm?) - for each, which party won by how many votes, what was voter turnout, how competitive (<5% margin)
ACS/Census data - aggregated demographics - age, gender, ethnicity, income by district