Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 11 new columns ({'bjp_seats_2019', 'opposition_seats_2024', 'total_seats', 'result_nda', 'nda_seats_2019', 'nda_seats_2024', 'bjp_seats_2024', 'opposition_bloc', 'note', 'typical_poll_projection_nda', 'state'}) and 7 missing columns ({'window', 'actual', 'source_type', 'metric', 'source_label', 'projected', 'miss_note'}).

This happened while the csv dataset builder was generating data using

hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence/derived/india-2024-state-swings.csv (at revision 3cc26bfb89b8cbfe1f8bd29a100725721e2f0609), ['hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/derived/india-2024-divergence.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/derived/india-2024-state-swings.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/market/india-2024-market-odds-timeseries.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/news/india-2024-press-coverage.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/polls/india-2024-seat-projections.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/polls/india-2024-vote-share-polls.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/structural/india-2024-structural-context.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1837, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              state: string
              total_seats: int64
              nda_seats_2019: int64
              nda_seats_2024: int64
              bjp_seats_2019: int64
              bjp_seats_2024: int64
              opposition_seats_2024: int64
              opposition_bloc: string
              typical_poll_projection_nda: string
              result_nda: int64
              note: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1654
              to
              {'source_type': Value('string'), 'source_label': Value('string'), 'window': Value('string'), 'metric': Value('string'), 'projected': Value('string'), 'actual': Value('string'), 'miss_note': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1839, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 11 new columns ({'bjp_seats_2019', 'opposition_seats_2024', 'total_seats', 'result_nda', 'nda_seats_2019', 'nda_seats_2024', 'bjp_seats_2024', 'opposition_bloc', 'note', 'typical_poll_projection_nda', 'state'}) and 7 missing columns ({'window', 'actual', 'source_type', 'metric', 'source_label', 'projected', 'miss_note'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence/derived/india-2024-state-swings.csv (at revision 3cc26bfb89b8cbfe1f8bd29a100725721e2f0609), ['hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/derived/india-2024-divergence.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/derived/india-2024-state-swings.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/market/india-2024-market-odds-timeseries.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/news/india-2024-press-coverage.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/polls/india-2024-seat-projections.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/polls/india-2024-vote-share-polls.csv', 'hf://datasets/AFOS-Analytics1/india-2024-lok-sabha-electoral-divergence@3cc26bfb89b8cbfe1f8bd29a100725721e2f0609/structural/india-2024-structural-context.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

source_type
string
source_label
string
window
string
metric
string
projected
string
actual
string
miss_note
string
market
Polymarket NDA seat-range (campaign mode)
2024-04-19/2024-05-31
NDA seats (most-likely bucket)
351-400 favored; <300 priced 3-15%
~293 (<300 bucket)
Market mode was 351-400; the bucket that actually won was priced low all campaign
market
Polymarket BJP majority 272+
2024-04-11/2024-06-04
P(BJP wins 272+ alone)
80-96% YES
NO: BJP 240
Market was confident BJP keeps its single-party majority; it did not
campaign_polls
Campaign seat polls (n=7)
2024-03/2024-05
NDA seats
~379 avg (358-411)
~293
Overestimated the NDA by ~86 seats
exit_polls
Poll of exit polls
2024-06-01
NDA seats
~373 avg (350-415)
~293
Overestimated the NDA by ~80 seats
exit_polls
Poll of exit polls
2024-06-01
INDIA bloc seats
~139 avg
~234
Underestimated the INDIA bloc by ~95 seats
result
ECI official
2024-06-04
seats
NDA 293 / BJP 240 / INDIA 234 / INC 99
certified
Official anchor. BJP lost its single-party majority (272) for the first time since 2014
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
End of preview.

AFOS · India 2024 (Lok Sabha) Electoral Cross-Reference Dataset

DOI

DOI (Harvard Dataverse): https://doi.org/10.7910/DVN/CNLXZJ

India 2024 (Lok Sabha): Electoral Cross-Reference Dataset

An AFOS Analytics validated case. It cross-references a prediction market (Polymarket), opinion polls, exit polls and press coverage against the official result of the 2024 Indian general election, the largest election in human history. AFOS reports the crossing, convergence or divergence, and makes no value judgment; the official result of the Election Commission of India is the anchor.


The finding

EN. The prediction market and the polls agreed with each other and overestimated together: they got the winner right (Narendra Modi's NDA alliance would win) but the size very wrong. They predicted a landslide of 350 to 400 of the 543 seats; the alliance won only ~293, and Modi's own party, the BJP, lost the single-party majority it had governed with (240 seats), for the first time since 2014. What validates the case is the official result, not the tools getting it right.

PT. O mercado de previsão e as pesquisas concordaram entre si e superestimaram juntos: acertaram o vencedor (a aliança NDA, de Modi, venceria) mas erraram muito o tamanho. Previram um massacre de 350 a 400 das 543 cadeiras; a aliança fez só ~293, e o partido do próprio Modi, o BJP, perdeu a maioria que governava sozinho (240 cadeiras), pela primeira vez desde 2014. O que valida o caso é o resultado oficial, não as ferramentas terem acertado.

ES. El mercado de predicción y las encuestas coincidieron entre sí y sobreestimaron juntos: acertaron el ganador (la alianza NDA, de Modi, ganaría) pero erraron mucho el tamaño. Predijeron un arrasamiento de 350 a 400 de los 543 escaños; la alianza obtuvo solo ~293, y el partido del propio Modi, el BJP, perdió la mayoría propia con que gobernaba (240 escaños), por primera vez desde 2014. Lo que valida el caso es el resultado oficial, no que las herramientas acertaran.

The crossing, in two charts

India 2024: Polymarket implied probability for the NDA, 19 Apr to 4 Jun 2024

The market was 80-96% sure the BJP would keep its majority (it did not) and priced the actual outcome (NDA under 300 seats) at only 3-15%.

India 2024: projected NDA seats (polls, exit polls, market) vs the official result

Every tool clustered at 355-373 seats for the NDA; the official result was 293. They converged with each other and were wrong together.


Scale (why this election matters)

  • ~980 million eligible voters (final electoral roll ~97.97 crore): the largest election in human history.
  • 642 million votes cast (turnout 65.79%), a world record for votes cast.
  • Voting via Electronic Voting Machines (EVM) with a VVPAT paper trail (~5.5 million machines).
  • 7 phases over six weeks (19 Apr to 1 Jun 2024), counted in a single day (4 Jun 2024), 543 seats, majority at 272.

Cross-referenced evidence base

  • Market: Polymarket, an on-chain real-money market with auditable volume (~US$835k across 3 markets; a daily price series of ~350 observations, Apr to Jun 2024).
  • Polls: 44 national poll data points (17 seat-projection + 13 vote-share + 14 exit polls), plus the three largest states (Uttar Pradesh, Maharashtra, West Bengal); ~100 polls read in total.
  • Press: 10 articles with verified links, spanning the campaign, exit polls, result and the stock-market reaction.
  • Anchor: the officially proclaimed result of the Election Commission of India.

What's inside

File Content
market/india-2024-market-odds-timeseries.csv Daily Polymarket implied probabilities for 7 contracts (6 NDA seat-range buckets + BJP-majority).
polls/india-2024-seat-projections.csv 17 national opinion polls + 14 exit polls (seat projections for NDA / INDIA) + the ECI result.
polls/india-2024-vote-share-polls.csv 13 national vote-share polls + the ECI result + the 2019 result for comparison.
derived/india-2024-divergence.csv The core cross-reference: what each tool projected vs the official result.
derived/india-2024-state-swings.csv The three biggest states (UP 80, Maharashtra 48, West Bengal 42): 2019 vs 2024 vs projections.
news/india-2024-press-coverage.csv 10 press items (outlet, url, phase, trilingual note).
structural/india-2024-structural-context.csv India national context (World Bank governance + macro indicators).
raw/india-2024-official-result.json The ECI result anchor (seats, vote share, turnout, dates, EVM note).
raw/india-2024-polymarket-snapshot.json The Polymarket markets (volume, tokens, resolution).
scripts/compute_derived_figures.py Recomputes the AFOS-derived figures (exit-poll avg, market expected seats, vote averages) from the shipped CSVs.
scripts/PIPELINE.md How every file was produced, from public sources.

Methodology and scope

AFOS cross-references prediction markets and polls against the officially proclaimed result and reports the convergence or divergence, without any value judgment. This is a national case (the Lok Sabha, India's federal parliament); state elections are separate.

Notes

  • Electronic voting machines. India votes on EVMs (nationwide since 2004) with a VVPAT paper trail, a sample of which is cross-checked. EVM integrity is a live political debate in India: parts of the opposition question it; the Election Commission and the Supreme Court defend it (the Supreme Court rejected pleas for 100% VVPAT verification in April 2024). The 2024 national result was broadly accepted, with isolated seat-level complaints. AFOS takes no position on EVM integrity and anchors on the official ECI result.
  • Result variance. The NDA total is reported as 292-294 and the INDIA bloc as 232-234 by different sources (classification of small allies); this dataset adopts NDA 293, INDIA 234. Vote share is the ECI figure (NDA 43.8% / INDIA 41.48%, a 2.32-point lead); an alternative tabulation gives 42.5% / 40.6%. Both are a near-tie.
  • Exit polls were not unanimous. The 14 houses ranged from 221 (DB Live, which projected an NDA defeat) to 415 (Today's Chanakya); the closest to the real ~293 was Dainik Bhaskar (316).
  • Auditability. Only Polymarket is included as a market signal, because it is on-chain and auditable. Informal Indian betting (Delhi bookies, Phalodi satta bazaar) and community forecasts (Metaculus) also over-projected the NDA, but they are not auditable and have no verifiable volume, so they are deliberately excluded from this dataset.
  • State coverage. The three largest states (170 of 543 seats) are incorporated; smaller states are documented in the source but not folded in one by one.
  • Reproducibility. The AFOS-computed figures (exit-poll average, market expected seats, vote-share averages) are recomputed from the shipped CSVs by scripts/compute_derived_figures.py; see scripts/PIPELINE.md for the full pipeline and sources.

Full field definitions are in CODEBOOK.md; provenance and limitations in DATASHEET.md and KNOWN_ISSUES.md.

Citation

See CITATION.cff. Please credit the original pollsters, Polymarket, and the Election Commission of India.

License

Data: CC BY 4.0 (LICENSE). Accompanying code: Apache 2.0 (LICENSE-APACHE). No redistribution-restricted source is included.

AFOS Analytics: afos-analytics.com. Cross-referencing prediction markets, polls and press against the official result of elections.

Downloads last month
150