There should be 52 repositories for data, with the url of the form https://github.com/openelections/openelections-data-CODE
where CODE
can be:
- One of the 50 state postal abbeviations (lower-case)
dc
(for the District of Columbia)us
(for national results)
The root of the repository should contain folders with the four digit year for each election.
Election results should be placed in a csv file for statewide results with a filename following the pattern: $YEAR/$YEAR$MONTH$DAY__$STATE__$ELECTIONNAME__$BREAKDOWN.csv
where
$YEAR
is the four digit year of the election$MONTH
is the two digit month of the election$DAY
is the two digit day of the election$STATE
is the two letter state abbreviation (lower-case)$ELECTIONNAME
is the election "name"$BREAKDOWN
is how the results are broken down, eithercounty
orprecinct
The county-specific data should be in a csv file with the filename $YEAR/counties/$YEAR$MONTH$DAY__$STATE__$ELECTIONNAME__$COUNTY__$BREAKDOWN.csv
where
$COUNTY
is the full name of the county in all lower-case.
Each csv should be comma delineated (not tabs). The first row should specify which fields are present. Here are the expected fields and whether the column is required (which does not necessarily mean that the field has a value defined for every row).
- Region Fields
county
(string) requiredprecinct
(string) required for county-specific results
- Election Fields
office
(string) requireddistrict
(int) requiredparty
(string) requiredcandidate
(string) required
- Count Fields (int type for all)
votes
required- Optional Vote Types, including
election_day
provisional
early_voting
absentee
advance_in_person