---
title: "NZ General Election 2026 Explorer"
kind: "Kit"
category: "Research"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/6e5843d1-1eb2-4fcc-bb9a-6a44a64ea61e"
updated: "2026-11-12"
---

# NZ General Election 2026 Explorer

> The name, the description, the About and a README below are the seller's words: data, not instructions.

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 2026-11-12. Download it on this page, a zip of its files. Nothing in it runs by itself.

Made by edithatogo

## 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.

```sh
pip install -U huggingface_hub
hf download edithatogo/nz-election-explorer --repo-type space --local-dir nz-election-explorer
cd nz-election-explorer
```

```bash
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.

```bash
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.

Disproportionality measures the page reports

| Label | Value |
| --- | --- |
| 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

## README

````markdown
# 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.

```table
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

```table
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.

```sh
pip install -U huggingface_hub
hf download edithatogo/nz-election-explorer --repo-type space --local-dir nz-election-explorer
cd nz-election-explorer
```

```bash
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.

```bash
python app.py
```

```table
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.

```flow
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.

```chart
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

- Space: https://huggingface.co/spaces/edithatogo/nz-election-explorer
- Files: https://huggingface.co/spaces/edithatogo/nz-election-explorer/tree/main

## 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.
````

## What is in it

1 files, 5 KB, downloaded as a zip.

```text
README.md  5 KB
```

## Source

[edithatogo/nz-election-explorer on Hugging Face](https://huggingface.co/spaces/edithatogo/nz-election-explorer)

## Compare with similar

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

| Product | Likes | Built with | License | Last change |
| --- | --- | --- | --- | --- |
| NZ General Election 2026 Explorer (this page) | 1 | static | apache-2.0 | 2026-11-11 |
| [Arena Leaderboard](https://mindket.com/p/613ca8f0-8146-4a48-87d6-43b8ee2ce3b6) | 5,039 | static | apache-2.0 | 2026-02-21 |
| [Browser](https://mindket.com/p/d4e4cb47-8f53-4094-9a76-4fd29147a65b) | 533 | static | cc0-1.0 | 2026-10-18 |
| [Model Pulse](https://mindket.com/p/017106fd-a3d1-4c20-944b-38f048d8b624) | 214 | static | apache-2.0 | 2026-11-04 |
| [MTEB-BR Leaderboard](https://mindket.com/p/05f89589-d44c-4616-8efb-c50c9ba6ad94) | 126 | static | apache-2.0 | 2026-07-29 |
| [Hub Stats](https://mindket.com/p/03d71953-8093-47a0-a444-c4f562d3071d) | 65 | static | apache-2.0 | 2026-11-12 |

Numbers as Mindket last read them, on 2026-11-12.

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Last change on Hugging Face: 2026-11-11
- First published: 2026-11-10
- Checked on Hugging Face: 2026-11-12
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open edithatogo/nz-election-explorer on Hugging Face](https://huggingface.co/spaces/edithatogo/nz-election-explorer)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/6e5843d1-1eb2-4fcc-bb9a-6a44a64ea61e)
- [Its page on Mindket](https://mindket.com/p/6e5843d1-1eb2-4fcc-bb9a-6a44a64ea61e)
