Mindket

NZ General Election 2026 Explorer

Newversion 1 · updated

Overview

Explores New Zealand's 2026 general election with seat allocation, overhang and forecast models, in a Gradio dashboard and a static page. Suits analysts, students and curious readers.

NZ General Election 2026 Explorer is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python with pip on Windows, macOS or Linux
  • The Hugging Face hub client, which the first step installs
  • The packages listed in requirements.txt
Runs in
  • A browser: open the Space's page on Hugging Face, with nothing to install
  • A downloaded copy on Windows, macOS or Linux, where you open index.html in a web browser
  • The Gradio dashboard run locally with Python
Start with
pip install -U huggingface_hub
hf download edithatogo/nz-election-explorer --repo-type space --local-dir nz-election-explorer
cd nz-election-explorer

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

This Space is one author's analysis of New Zealand's 2026 general election. It models how votes turn into seats, including the extra overhang seats, and adds causal studies, a swing model for special votes and a forecast for 2029. It comes as a Gradio dashboard and as a static page. The author has retired an earlier Streamlit version.

Who it suits

It suits people who follow New Zealand politics and want to test seat scenarios, and students of electoral systems and statistics who like worked examples.

IndustryWho uses itHow they use itExample
Politics and mediaAnalysts and journalistsTest how vote shares turn into seats under the allocation rulesChange a parameter and watch the seat counts recalculate
AcademiaPolitical science studentsStudy disproportionality measures and causal methods on one caseRead how the Gallagher index is reported
Data scienceData scientistsSee classifiers and causal designs applied to election dataLook at the special votes swing model
Civic interestCurious readersBrowse the modelled results and the visual extrasOpen the static page and explore the figures

Skip it if you need official results or neutral polling, since every figure here comes from the author's own models.

Where to use it

  • A browser: open the Space's page on Hugging Face, with nothing to install
  • A downloaded copy on Windows, macOS or Linux, where you open index.html in a web browser
  • The Gradio dashboard run locally with Python
Use caseWhoWhat they get back
Seat scenariosAnalystsSeat counts that recalculate when you change inputs
Causal readingStudentsWorked examples of causal methods applied to overhang seats
Browsing visualsCurious readersMany figures, a slide deck and interactive pages

How to set it up

The online copy needs nothing. For a copy on your own computer, you need the following.

  • Python with pip on Windows, macOS or Linux
  • The Hugging Face hub client, which the first step installs
  • The packages listed in requirements.txt
  1. Install the Hugging Face hub client.
  2. Download the Space's files into a local folder, which holds 567 files.
  3. Move into that folder.
  4. For the static page, load index.html in your browser.
  5. For the dashboard, install the packages and start app.py.
pip install -U huggingface_hub
hf download edithatogo/nz-election-explorer --repo-type space --local-dir nz-election-explorer
cd nz-election-explorer
pip install -r requirements.txt
python app.py

How to use it

Online, open the Space's page. Locally, start the dashboard with the command below, or open the static page, which runs inside the browser.

python app.py
ToolWhat it does
Gradio dashboard in app.pyThe live version, which recalculates results when parameters change and runs the forecasts
Static page in index.htmlA client-side version with sound and shader visuals that needs no server quota

Example

You open the dashboard and change a vote share. The seat allocation and the overhang count recalculate, and you compare the new result with the original figures on the page.

For newcomers and experts

If you are new, overhang seats are extra seats a party wins when it takes more local seats than its share of the party vote would give. Open the static page first and browse the figures before you change anything.

If you know the field, the page applies Sainte-Laguë allocation under the Electoral Act and a Shapley split of the overhang seats. It adds a regression discontinuity on incumbency, an instrumental variable design, XGBoost for special votes and a Hibbs-Stokes model for 2029. The source does not list the assumptions behind the headline numbers.

  1. You open the dashboard or the static page
  2. You set vote and model parameters
  3. The seat and overhang models recalculate
  4. Causal and forecast views update

Good to know

The numbers below are what the page reports from its own models, not official counts.

Disproportionality measures the page reports
Gallagher Index4.82%
Loosemore-Hanby6.14%
Rae Index1.24%
Maximum Deviation5.34%
  • License: apache-2, as listed on Hugging Face
  • Cost to run: no API key or paid service is named, and the page says the static copy uses no server quota
  • Data it reaches: its own files, plus a public dataset that the README says this Space belongs to
  • Not for: the source lists no exclusions, so treat the figures as modelled results and not as official counts

README and files

README

NZ General Election 2026 Explorer

Explores New Zealand's 2026 general election with seat allocation, overhang and forecast models, in a Gradio dashboard and a static page. Suits analysts, students and curious readers.

Made by edithatogo on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: This Space is one author's analysis of New Zealand's 2026 general election. It models how votes turn into seats, including the extra overhang seats, and adds causal studies, a swing model for special votes and a forecast for 2029. It comes as a Gradio dashboard and as a static page. The author has retired an earlier Streamlit version.

Who it suits: It suits people who follow New Zealand politics and want to test seat scenarios, and students of electoral systems and statistics who like worked examples.

Industry | Who uses it | How they use it | Example
Politics and media | Analysts and journalists | Test how vote shares turn into seats under the allocation rules | Change a parameter and watch the seat counts recalculate
Academia | Political science students | Study disproportionality measures and causal methods on one case | Read how the Gallagher index is reported
Data science | Data scientists | See classifiers and causal designs applied to election data | Look at the special votes swing model
Civic interest | Curious readers | Browse the modelled results and the visual extras | Open the static page and explore the figures

Skip it if you need official results or neutral polling, since every figure here comes from the author's own models.

Where to use it:

  • A browser: open the Space's page on Hugging Face, with nothing to install
  • A downloaded copy on Windows, macOS or Linux, where you open index.html in a web browser
  • The Gradio dashboard run locally with Python
Use case | Who | What they get back
Seat scenarios | Analysts | Seat counts that recalculate when you change inputs
Causal reading | Students | Worked examples of causal methods applied to overhang seats
Browsing visuals | Curious readers | Many figures, a slide deck and interactive pages

How to set it up: The online copy needs nothing. For a copy on your own computer, you need the following.

  • Python with pip on Windows, macOS or Linux
  • The Hugging Face hub client, which the first step installs
  • The packages listed in requirements.txt
  1. Install the Hugging Face hub client.
  2. Download the Space's files into a local folder, which holds 567 files.
  3. Move into that folder.
  4. For the static page, load index.html in your browser.
  5. For the dashboard, install the packages and start app.py.
pip install -U huggingface_hub
hf download edithatogo/nz-election-explorer --repo-type space --local-dir nz-election-explorer
cd nz-election-explorer
pip install -r requirements.txt
python app.py

How to use it: Online, open the Space's page. Locally, start the dashboard with the command below, or open the static page, which runs inside the browser.

python app.py
Tool | What it does
Gradio dashboard in app.py | The live version, which recalculates results when parameters change and runs the forecasts
Static page in index.html | A client-side version with sound and shader visuals that needs no server quota

Example: You open the dashboard and change a vote share. The seat allocation and the overhang count recalculate, and you compare the new result with the original figures on the page.

For newcomers and experts: If you are new, overhang seats are extra seats a party wins when it takes more local seats than its share of the party vote would give. Open the static page first and browse the figures before you change anything.

If you know the field, the page applies Sainte-Laguë allocation under the Electoral Act and a Shapley split of the overhang seats. It adds a regression discontinuity on incumbency, an instrumental variable design, XGBoost for special votes and a Hibbs-Stokes model for 2029. The source does not list the assumptions behind the headline numbers.

You open the dashboard or the static page
You set vote and model parameters
The seat and overhang models recalculate
Causal and forecast views update

Good to know: The numbers below are what the page reports from its own models, not official counts.

Title: Disproportionality measures the page reports
Gallagher Index: 4.82%
Loosemore-Hanby: 6.14%
Rae Index: 1.24%
Maximum Deviation: 5.34%
  • License: apache-2, as listed on Hugging Face
  • Cost to run: no API key or paid service is named, and the page says the static copy uses no server quota
  • Data it reaches: its own files, plus a public dataset that the README says this Space belongs to
  • Not for: the source lists no exclusions, so treat the figures as modelled results and not as official counts

On Hugging Face, 13 November 2026

  • Likes: 1
  • Built with: static
  • License: apache-2.0

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
NZ General Election 2026 Explorer This page1staticapache-2.0
Arena LeaderboardShares static5,039staticapache-2.0
BrowserShares static533staticcc0-1.0
Model PulseShares static214staticapache-2.0
MTEB-BR LeaderboardShares static126staticapache-2.0
Hub StatsShares static65staticapache-2.0
Numbers as Mindket last read them, on 2026-11-12.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Research

See all in Research

EarthJev

dBenf · Kit

Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…

New

getting-over-it-rl-jax

zimmerk4 · Kit

Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…

New

ReFoCo

yuji-nozawa · Kit

Pretrained vision transformer checkpoints in three sizes from a research paper on training attention heads to focus on image regions. For researchers who extra…

New