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

Election source files that include more than one election #40

Open
nbdavies opened this issue Apr 25, 2018 · 4 comments
Open

Election source files that include more than one election #40

nbdavies opened this issue Apr 25, 2018 · 4 comments

Comments

@nbdavies
Copy link
Contributor

nbdavies commented Apr 25, 2018

For election 1573 on 2015-02-17, WEC has only one portal page and one ward-level Excel results file:

http://elections.wi.gov/sites/default/files/Spring%20Primary%202.17.15%20Results%20by%20Ward%20Report.xlsx

This file includes results for a partisan primary for state senate, and the non-partisan primary for judicial offices. These two things should be defined as two separate elections, but there's only the one source file.

So one the following would be needed:

  • WEC would have to create a separate Excel file and/or webpage.
  • We would need to be able to feed the same source file for both elections, and specify somewhere (in metadata?) which tabs of the file belong to which election.
  • Use metadata to define one election as containing state legislators, and the other as not containing state legislators (having no checkboxes for office checked). Then only include results in the election's output file that match the expected offices.
@davipo
Copy link
Contributor

davipo commented May 6, 2018

To clarify: The reason these elections should be in separate results files is not because one is partisan and the other non-partisan, or because one is legislative and one judicial. They should be separate because the state senate district 20 election is a special primary, and the circuit court election is a regular primary. Is that correct? I could not find a reference to check the election types.

I'd prefer we not implement some special kludge for this case. Let's ask WEC if they can provide separate files.

http://elections.wi.gov/elections-voting/results/2015/spring-primary

We can make a new id in the metadata for the regular primary, linking to the same spreadsheet file. (Correct the offices checkboxes in id 1573.) This will generate a new output file, 20150217__wi__primary__ward.csv, containing the same results as 20150217__wi__special__primary__ward.csv. Both will contain the results for both elections. Not correct, but document the problem.

We could split the spreadsheet into two files manually. So far, all our input data comes directly from the WI Election Commission files, so this would break that.

We could implement a check in the parser, for every election, that verifies that all offices processed match the office checkboxes in the metadata, producing errors if not. This is probably worth doing anyway, it may reveal other discrepancies.

We could filter output results by offices specified in metadata. This would remove the state senate data from 20150217__wi__primary__ward.csv, but the circuit court results would remain in 20150217__wi__special__primary__ward.csv because we have no metadata checkbox for judicial offices. Can we add such a field to the metadata database?

nbdavies added a commit to nbdavies/openelections-data-wi that referenced this issue May 9, 2018
@nbdavies
Copy link
Contributor Author

nbdavies commented May 9, 2018

Election 413 (2012-04-03) is a similar situation: there is a single source file that contains partisan primary results and non-partisan general results:
http://gab.wi.gov/sites/default/files/Results%20by%20Ward_Spring%20Election%20and%20Pres%20Pref%20vote_4.3.12.xls
Those should also be split out somehow.

@nbdavies
Copy link
Contributor Author

nbdavies commented Mar 10, 2020

Elections 1893/1894 are a similar situation too: The regularly-scheduled non-partisan primary occurred on the same day as a special partisan primary. WEC lists them on a single page:
https://elections.wi.gov/node/6697
And the only ward level results file includes both:
https://elections.wi.gov/sites/elections.wi.gov/files/Ward%20by%20Ward%20Report_All%20Offices_Spring%20Primary_2_18_20.xlsx
Not sure how to best extricate the two elections' results. Maybe some pre- pre- processing, to split certain Excel file sheets out to their own files?

@nbdavies nbdavies changed the title Election 1573 Source File Includes Spring Primary and Special Primary Election source files that include more than one election Mar 25, 2020
@nbdavies
Copy link
Contributor Author

This will be fixed for elections 1893/1894 in PR #56.

The solution (for now at least) is to split the Excel source file into two copies (one for the special House results, one for the nonpartisan judicial results), include those in the local_data_cache, and refer to those split source files in the cached copy of the metadata.

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

2 participants