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 party-based performance from last general election #64

Open
timwis opened this issue Apr 18, 2015 · 3 comments
Open

Add party-based performance from last general election #64

timwis opened this issue Apr 18, 2015 · 3 comments

Comments

@timwis
Copy link
Member

timwis commented Apr 18, 2015

While knowing who they actually endorsed in the primary would allow the strongest indicator of performance (when compared against election results), we can at least assume the democrats endorsed the democrats in the general election in the meantime.

Easiest way to do this

  1. Visit BallotBoxApp
  2. Select 2014 General and Governor and Lieutenant Governor
  3. Select Ward 1
  4. Copy the % for the democratic candidate into the democratic ward leader's Results column and the % for the republican candidate into the republican ward leader's column in the spreadsheet
  5. Repeat for the other wards (there are 66)
@pwolanin
Copy link
Collaborator

I seems like the data on https://www.philadelphiavotes.com/en/resources-a-data/ballot-box-app.html
Is now just provided as spreadsheets.

We should define a process for updating the various stats automatically from those (after converting to CSV probably).

@timwis
Copy link
Member Author

timwis commented Mar 18, 2022

If helpful, you could use a Python library to convert xlsx to csv as part of a data script, or use a separate tool like csvkit to convert it before passing it to your script.

@pwolanin
Copy link
Collaborator

It's easy enough to use excel or open office to convert to csv, especially since this is infrequent. I think a data script to pull out the values would be more important.

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

No branches or pull requests

2 participants