Skip to content

Add Scotland 2022 council election preference profiles - #34

Open
fsargent wants to merge 2 commits into
PrefLib:mainfrom
fsargent:add-scotland-2022-data
Open

fsargent wants to merge 2 commits into
PrefLib:mainfrom
fsargent:add-scotland-2022-data

Conversation

@fsargent

Copy link
Copy Markdown
Contributor

Adds 347 ranked-ballot profiles from the Scottish council elections of 5 May 2022: 1,857,181 recorded ballots across all 32 councils. Eight uncontested wards have no ballot records and are listed as excluded.

The source is Denis Mollison’s compilation of preference files published by council Returning Officers. I host interactive ward reports and a source mirror on stv.vote. Each ward’s metadata links to its stv.vote report. The contribution credits Mollison and stv.vote in its documentation and dataset citation field.

The SOI profiles preserve partial rankings, candidate order and source candidate/party labels. Identical rankings retain their exact frequencies; no preferences or bottom ties are added. A separate CSV-formatted .dat crosswalk records seat counts, ballot totals, source paths, checksums and report links. Conversion scripts and a source manifest make the submission reproducible.

Validation:

  • Verified the original ZIP checksum and byte-for-byte agreement of all 355 source ward files with the stv.vote mirror.
  • Independently reconstructed the source rank vectors from every PrefLib profile and compared the full frequency distributions: all 309,711 distinct rankings match exactly.
  • PrefLib-Tools 2.0.33 and repository sanity checks pass, with warnings escalated.
  • Generated standard metadata.csv with the repository’s metadata script.
  • All 347 report links match stv.vote’s local report catalogue; a live example returns HTTP 200.

Proposed series 00078; publication date left blank for maintainers. This is a standalone contribution based directly on upstream main.

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.

1 participant