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

Convert 2016 general election files #1

Closed
dwillis opened this issue Jan 15, 2017 · 39 comments
Closed

Convert 2016 general election files #1

dwillis opened this issue Jan 15, 2017 · 39 comments

Comments

@dwillis
Copy link
Contributor

dwillis commented Jan 15, 2017

If you want to work on a county, add a comment saying which one you'd like to work on or email openelections@gmail.com. You can either email us finished CSV files or submit a pull request, whatever is easiest.

The source files you'll be converting can be found here. Many of these are either PDFs or Excel files, and in some cases you'll need to convert a number of office-specific files. For electronic PDFs, we recommend using Tabula, which is free, to extract data. The goal is to create a single CSV file for each county, with the following headers:

county, precinct, office, district, party, candidate, votes

For the following offices: President, U.S. Senate, U.S. House, State Senate, State House. You can use the Kiowa County file as an example of how things should look.

  • Allen
  • Anderson
  • Atchison
  • Barber
  • Barton
  • Bourbon
  • Brown
  • Butler
  • Chase
  • Chautauqua
  • Cherokee
  • Cheyenne
  • Clark
  • Clay
  • Cloud
  • Coffey
  • Comanche
  • Cowley
  • Crawford
  • Decatur
  • Dickinson
  • Doniphan
  • Douglas
  • Edwards
  • Elk
  • Ellis
  • Ellsworth
  • Finney
  • Ford
  • Franklin
  • Geary
  • Gove
  • Graham
  • Grant
  • Gray
  • Greeley
  • Greenwood
  • Hamilton
  • Harper
  • Harvey
  • Haskell
  • Hodgeman
  • Jackson
  • Jefferson
  • Jewell
  • Johnson
  • Kearny
  • Kingman
  • Kiowa
  • Labette
  • Lane
  • Leavenworth
  • Lincoln
  • Linn
  • Logan
  • Lyon
  • McPherson
  • Marion
  • Marshall
  • Meade
  • Miami
  • Mitchell
  • Montgomery
  • Morris
  • Morton
  • Nemaha
  • Neosho
  • Ness
  • Norton
  • Osage
  • Osborne
  • Ottawa
  • Pawnee
  • Phillips
  • Pottawatomie
  • Pratt
  • Rawlins
  • Reno
  • Republic
  • Rice
  • Riley
  • Rooks
  • Rush
  • Russell
  • Saline
  • Scott
  • Sedgwick
  • Seward
  • Shawnee
  • Sheridan
  • Sherman
  • Smith
  • Stafford
  • Stanton
  • Stevens
  • Sumner
  • Thomas
  • Trego
  • Wabaunsee
  • Wallace
  • Washington
  • Wichita
  • Wilson
  • Woodson
  • Wyandotte
@krishnan-viswanathan
Copy link

Leon County, FL

@dwillis
Copy link
Contributor Author

dwillis commented Jan 27, 2017

@krishnan-viswanathan Florida has election results files you can download; this is the Kansas repository.

@krishnan-viswanathan
Copy link

Realized that after I put in my comment that it is KS specific. Sorry about that.

Brown County.

@taylorterry3
Copy link
Contributor

I've got Allen county done. I can't push since I'm a first time contributor, but it's in a gist at https://gist.github.com/taylorterry3/aca4785c0d65147484dda4c107af429f. Let me know if any edits are needed.

Thanks!

@dwillis
Copy link
Contributor Author

dwillis commented Jan 31, 2017

@taylorterry3 Thanks! It looks like districts for U.S. House and state senate are missing. Can you fix? You can't push directly, but you can fork this repository, push to your own copy and then create a pull request.

@taylorterry3
Copy link
Contributor

OK, cool, didn't realize you guys did forks rather than branches. Makes sense.

Re: districts, they're not present in the source file (nor is party). I'm guessing the whole county is in one state senate and US House, though, so I'll research that and hand-jam them.

@dwillis
Copy link
Contributor Author

dwillis commented Jan 31, 2017

Many thanks!

@mishelley
Copy link

Is Nemaha and Neosho available? Happy to work on them

@dwillis
Copy link
Contributor Author

dwillis commented Feb 16, 2017

@mishelley: yes, absolutely, thanks!

@mishelley
Copy link

Getting started

@brentajones
Copy link
Contributor

Harper.

@lephead
Copy link

lephead commented Mar 14, 2017

@lephead
Copy link

lephead commented Mar 14, 2017

20161108_ks_general_dickinson_precinct.xlsx

I deleted the blank state leg lines in Abilene and am resubmitting.

@lephead
Copy link

lephead commented Mar 14, 2017

@lephead
Copy link

lephead commented Mar 14, 2017

@lephead
Copy link

lephead commented Mar 14, 2017

@lephead
Copy link

lephead commented Mar 14, 2017

@lephead
Copy link

lephead commented Mar 14, 2017

20161108_ks_general_stafford_precinct.xlsx

@lephead
Copy link

lephead commented Mar 14, 2017

20161108_ks_general_sumner_precinct.xlsx

@nk9
Copy link
Contributor

nk9 commented Mar 14, 2017

@lephead Thanks for all of these! Will convert them into CSVs and upload. In the future, please include the candidate and/or precinct totals where possible. This means we can have a checksum to make sure there weren't any typos/scannos/copy-paste errors in the results. Have a look at this CSV for how to include precinct totals. Candidate totals simply put the "Total" marker in the precinct field.

In addition, if you find it easier, you're welcome to use this format to submit the results. We have a script which takes that and turns it directly into an OE CSV file.

@lephead
Copy link

lephead commented Mar 15, 2017

I'll add the county totals from now on.

@lephead
Copy link

lephead commented Mar 15, 2017

20161108_ks_general_ford_precinct.xlsx

@lephead
Copy link

lephead commented Mar 15, 2017

Ford with totals

20161108_ks_general_ford_precinct.xlsx

@lephead
Copy link

lephead commented Mar 15, 2017

20161108_ks_general_franklin_precinct.xlsx

You won't believe this but between Franklin County and the Sec of State, there were no totals except president on the internet.

@lephead
Copy link

lephead commented Mar 15, 2017

20161108_ks_general_geary_precinct.xlsx

@nk9
Copy link
Contributor

nk9 commented Mar 15, 2017

I'll be honest: it's Kansas. I can believe it. :-)

@nk9
Copy link
Contributor

nk9 commented Mar 16, 2017

@lephead The Sherman and Logan results above don't seem to have successfully uploaded. Can you have a look again, please?

@lephead
Copy link

lephead commented Mar 16, 2017

@lephead
Copy link

lephead commented Mar 16, 2017

Here is Labette

20161108_ks_general_labette_precinct.xlsx

@lephead
Copy link

lephead commented Mar 16, 2017

Here's Jackson for ya

20161108_ks_general_jackson_precinct.xlsx

@lephead
Copy link

lephead commented Mar 16, 2017

@michaelgreis
Copy link

Hey, I'm going to be working some of these throughout the day. Working on Chase currently

@gvpeek
Copy link
Contributor

gvpeek commented Apr 1, 2017

Working on Chautauqua. Will try to run through some of these as well as part of the hackathon

@gvpeek
Copy link
Contributor

gvpeek commented Apr 1, 2017

Working on Lane next

@gvpeek
Copy link
Contributor

gvpeek commented Apr 3, 2017

I'm planning to work on Clay next, but it's pretty gross, so may take me a while

@karpet
Copy link
Contributor

karpet commented Jul 5, 2017

I have obtained precinct level reports from the KS SoS office but they are mostly in PDF format. Would these be helpful for the remaining work here?

--edit
Ah nevermind, I see you already have the same data in https://github.com/openelections/openelections-sources-ks

@dwillis
Copy link
Contributor Author

dwillis commented Jul 5, 2017

@karpet thanks, if you see any that we don't have that you do, would love to have them.

@lephead
Copy link

lephead commented Jul 5, 2017 via email

@dwillis dwillis closed this as completed Jul 30, 2017
dwillis pushed a commit that referenced this issue Sep 21, 2017
Updated party for Patrick Wiesner from LBT to D
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

No branches or pull requests

10 participants