Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add "state" name for Alaska and District of Columbia, and update 2016 data for Alaska #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

almccon
Copy link

@almccon almccon commented Nov 12, 2020

No description provided.

@almccon almccon changed the title add "state" name for Alaska and District of Columbia add "state" name for Alaska and District of Columbia, and update 2016 data for Alaska Nov 17, 2020
@tonmcg
Copy link
Owner

tonmcg commented Nov 19, 2020

Thanks for your work @almccon. A few questions and comments:

2016_US_County_Level_Presidential_Results.csv

Where do the results for Alaska come from? Did you re-run any of the notebooks on this repo to get those results? If not, how do we validate your results?

2020_US_County_Level_Presidential_Results.csv

Most of the FIPS codes in this file represent U.S. counties or county-equivalents. The sources of the data --including the NYT and Politico -- also report other geographic areas that as far as I can tell, may represent voting districts as well. For example, according to the latest gazetteer files from the U.S. Census, there is no county-equivalent in Alaska with a FIPS 02901.

But if we look at the Alaska Division of Elections website, they show 40 House Districts that align with the 40 Alaska results in this file (02901 - 02940). I believe some newspapers are reporting election totals at the House District level for Alaska and decompose the 5-digit FIPS code this way:

  • ssSdd, where ss is the state FIPS code, S is a catch-all statewide code, and dd is the house district.

So 02901 represents the state FIPS code for Alaska (02), for all statewide (9), for House District 01 (01).

For the District of Columbia, I think those results are reported on the ward level, given that D.C. has 8 wards and we have 8 rows of results for D.C.

We'll need a notebook that allows us to reproduce these results and also capture the common names of all voting districts/wards as well.

Can you separate out the 2020_US_County_Level_Presidential_Results.csv changes and resubmit your PR? I'll merge that into the main file right away. We'll have to revisit the results of the 2016_US_County_Level_Presidential_Results.csv in another PR.

@tonmcg
Copy link
Owner

tonmcg commented Nov 25, 2020

@almccon I merged #21 to the master branch, which solves the ward- and district-level results for DC and Alaska, respectively. For DC results, I aggregated all ward-level results to the state level. For Alaska results, I kept the district level-results as is and added state and district names for each row.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants