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 1 new columns ({'poll_vote_share_pct_7dma'}) and 3 missing columns ({'naive_gap_pp', 'poll_vote_share_pct', 'market_win_prob_pct'}).
This happened while the csv dataset builder was generating data using
hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence/data/usa-poll-aggregate-timeseries.csv (at revision 775370c2c9fd3b5a0a64d5f186440dff8cf9e852), ['hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/data/usa-divergence-timeseries.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/data/usa-poll-aggregate-timeseries.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/data/usa-popularvote-market-timeseries.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/data/usa-structural-context.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/data/usa-winner-market-timeseries.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/polls/usa-national-polls.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/press/usa-2024-press-timeline.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/raw/usa-2024-fivethirtyeight-president-polls.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
date: string
candidate: string
poll_vote_share_pct_7dma: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 655
to
{'date': Value('string'), 'candidate': Value('string'), 'market_win_prob_pct': Value('float64'), 'poll_vote_share_pct': Value('float64'), 'naive_gap_pp': Value('float64')}
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 1 new columns ({'poll_vote_share_pct_7dma'}) and 3 missing columns ({'naive_gap_pp', 'poll_vote_share_pct', 'market_win_prob_pct'}).
This happened while the csv dataset builder was generating data using
hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence/data/usa-poll-aggregate-timeseries.csv (at revision 775370c2c9fd3b5a0a64d5f186440dff8cf9e852), ['hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/data/usa-divergence-timeseries.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/data/usa-poll-aggregate-timeseries.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/data/usa-popularvote-market-timeseries.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/data/usa-structural-context.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/data/usa-winner-market-timeseries.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/polls/usa-national-polls.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/press/usa-2024-press-timeline.csv', 'hf://datasets/AFOS-Analytics1/usa-2024-electoral-divergence@775370c2c9fd3b5a0a64d5f186440dff8cf9e852/raw/usa-2024-fivethirtyeight-president-polls.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.
date string | candidate string | market_win_prob_pct float64 | poll_vote_share_pct float64 | naive_gap_pp float64 |
|---|---|---|---|---|
2024-07-21 | Trump | 64 | 46.52 | 17.48 |
2024-07-21 | Harris | 18.25 | 43.19 | -24.94 |
2024-07-22 | Trump | 63 | 46.38 | 16.62 |
2024-07-22 | Harris | 29.15 | 43.08 | -13.93 |
2024-07-23 | Trump | 62.5 | 46.69 | 15.81 |
2024-07-23 | Harris | 32.35 | 43.28 | -10.93 |
2024-07-24 | Trump | 60.5 | 45.93 | 14.57 |
2024-07-24 | Harris | 37.05 | 43.28 | -6.23 |
2024-07-25 | Trump | 62.5 | 45.77 | 16.73 |
2024-07-25 | Harris | 32.15 | 43.84 | -11.69 |
2024-07-26 | Trump | 61.5 | 45.78 | 15.72 |
2024-07-26 | Harris | 34.7 | 44.15 | -9.45 |
2024-07-27 | Trump | 58.5 | 45.7 | 12.8 |
2024-07-27 | Harris | 39.75 | 44.34 | -4.59 |
2024-07-28 | Trump | 57.5 | 45.06 | 12.44 |
2024-07-28 | Harris | 39.4 | 45.01 | -5.61 |
2024-07-29 | Trump | 58.5 | 45.21 | 13.29 |
2024-07-29 | Harris | 39.3 | 45.23 | -5.93 |
2024-07-30 | Trump | 59.5 | 45.46 | 14.04 |
2024-07-30 | Harris | 38 | 45.62 | -7.62 |
2024-07-31 | Trump | 58.5 | 45.7 | 12.8 |
2024-07-31 | Harris | 38.55 | 46.14 | -7.59 |
2024-08-01 | Trump | 55.5 | 45.49 | 10.01 |
2024-08-01 | Harris | 41.7 | 46.69 | -4.99 |
2024-08-02 | Trump | 53.5 | 45.48 | 8.02 |
2024-08-02 | Harris | 44.15 | 46.66 | -2.51 |
2024-08-03 | Trump | 52.5 | 45.61 | 6.89 |
2024-08-03 | Harris | 43.95 | 46.78 | -2.83 |
2024-08-04 | Trump | 54.5 | 45.32 | 9.18 |
2024-08-04 | Harris | 43.15 | 47.24 | -4.09 |
2024-08-05 | Trump | 51.5 | 45.06 | 6.44 |
2024-08-05 | Harris | 44.6 | 47.65 | -3.05 |
2024-08-06 | Trump | 53.5 | 45.19 | 8.31 |
2024-08-06 | Harris | 43.7 | 47.79 | -4.09 |
2024-08-07 | Trump | 51.5 | 45.19 | 6.31 |
2024-08-07 | Harris | 45.85 | 47.79 | -1.94 |
2024-08-08 | Trump | 48.5 | 45.32 | 3.18 |
2024-08-08 | Harris | 49.15 | 47.53 | 1.62 |
2024-08-09 | Trump | 49.15 | 45.21 | 3.94 |
2024-08-09 | Harris | 48.75 | 47.66 | 1.09 |
2024-08-10 | Trump | 47.6 | 45.06 | 2.54 |
2024-08-10 | Harris | 49.15 | 47.83 | 1.32 |
2024-08-11 | Trump | 45.3 | 44.47 | 0.83 |
2024-08-11 | Harris | 51.5 | 47.16 | 4.34 |
2024-08-12 | Trump | 45.55 | 44.64 | 0.91 |
2024-08-12 | Harris | 51.55 | 47.12 | 4.43 |
2024-08-13 | Trump | 45.85 | 44.55 | 1.3 |
2024-08-13 | Harris | 51.2 | 47.34 | 3.86 |
2024-08-14 | Trump | 45.55 | 44.85 | 0.7 |
2024-08-14 | Harris | 52.45 | 47.6 | 4.85 |
2024-08-15 | Trump | 44.7 | 44.7 | -0 |
2024-08-15 | Harris | 53.35 | 47.79 | 5.56 |
2024-08-16 | Trump | 44.3 | 44.84 | -0.54 |
2024-08-16 | Harris | 53.9 | 47.9 | 6 |
2024-08-17 | Trump | 45.45 | 44.84 | 0.61 |
2024-08-17 | Harris | 52.25 | 47.9 | 4.35 |
2024-08-18 | Trump | 48.65 | 44.84 | 3.8 |
2024-08-18 | Harris | 49.75 | 48.15 | 1.6 |
2024-08-19 | Trump | 48.35 | 44.71 | 3.64 |
2024-08-19 | Harris | 49.35 | 48.21 | 1.14 |
2024-08-20 | Trump | 48.6 | 44.67 | 3.93 |
2024-08-20 | Harris | 49.6 | 48.18 | 1.42 |
2024-08-21 | Trump | 50.25 | 44.03 | 6.22 |
2024-08-21 | Harris | 48.1 | 47.88 | 0.23 |
2024-08-22 | Trump | 52.15 | 44.19 | 7.96 |
2024-08-22 | Harris | 46.8 | 47.94 | -1.14 |
2024-08-23 | Trump | 51.75 | 43.89 | 7.86 |
2024-08-23 | Harris | 47.15 | 47.83 | -0.68 |
2024-08-24 | Trump | 50.15 | 43.98 | 6.17 |
2024-08-24 | Harris | 48.4 | 48.05 | 0.35 |
2024-08-25 | Trump | 50.2 | 44.69 | 5.51 |
2024-08-25 | Harris | 48.65 | 48.44 | 0.21 |
2024-08-26 | Trump | 49.55 | 44.37 | 5.18 |
2024-08-26 | Harris | 49.6 | 47.97 | 1.63 |
2024-08-27 | Trump | 49.45 | 44.69 | 4.76 |
2024-08-27 | Harris | 49.45 | 48.26 | 1.19 |
2024-08-28 | Trump | 50.35 | 44.19 | 6.16 |
2024-08-28 | Harris | 48.35 | 48.03 | 0.32 |
2024-08-29 | Trump | 50.3 | 44.14 | 6.16 |
2024-08-29 | Harris | 48.4 | 47.99 | 0.41 |
2024-08-30 | Trump | 49.8 | 44.22 | 5.58 |
2024-08-30 | Harris | 48.3 | 47.95 | 0.35 |
2024-08-31 | Trump | 49.95 | 44.21 | 5.74 |
2024-08-31 | Harris | 48.55 | 47.84 | 0.71 |
2024-09-01 | Trump | 50.25 | 44.08 | 6.17 |
2024-09-01 | Harris | 48.25 | 47.67 | 0.58 |
2024-09-02 | Trump | 50.85 | 44.55 | 6.3 |
2024-09-02 | Harris | 47.75 | 48.12 | -0.37 |
2024-09-03 | Trump | 51.75 | 44.58 | 7.17 |
2024-09-03 | Harris | 47.05 | 47.89 | -0.84 |
2024-09-04 | Trump | 51.15 | 45.26 | 5.89 |
2024-09-04 | Harris | 47.65 | 47.86 | -0.21 |
2024-09-05 | Trump | 52.95 | 45.72 | 7.23 |
2024-09-05 | Harris | 46 | 48.11 | -2.11 |
2024-09-06 | Trump | 52.8 | 45.96 | 6.84 |
2024-09-06 | Harris | 45.9 | 47.9 | -2 |
2024-09-07 | Trump | 50.55 | 45.99 | 4.56 |
2024-09-07 | Harris | 47.75 | 47.87 | -0.12 |
2024-09-08 | Trump | 50 | 45.73 | 4.27 |
2024-09-08 | Harris | 47.55 | 47.9 | -0.35 |
End of preview.