Dataset Preview
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 ({'DGS10'}) and 1 missing columns ({'CPIAUCSL'}).
This happened while the csv dataset builder was generating data using
zip://sp500_comprehensive/economic_DGS10.csv::hf://datasets/EduDevCommons/SP-500-Complete-Historical-Dataset@bb56964e8bd561a794b180bac1b767665aa8f091/S&P 500 Complete Historical Dataset.zip, ['hf://datasets/EduDevCommons/SP-500-Complete-Historical-Dataset@bb56964e8bd561a794b180bac1b767665aa8f091/S&P 500 Complete Historical Dataset.zip']
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
DGS10: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 500
to
{'DATE': Value('string'), 'CPIAUCSL': 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 ({'DGS10'}) and 1 missing columns ({'CPIAUCSL'}).
This happened while the csv dataset builder was generating data using
zip://sp500_comprehensive/economic_DGS10.csv::hf://datasets/EduDevCommons/SP-500-Complete-Historical-Dataset@bb56964e8bd561a794b180bac1b767665aa8f091/S&P 500 Complete Historical Dataset.zip, ['hf://datasets/EduDevCommons/SP-500-Complete-Historical-Dataset@bb56964e8bd561a794b180bac1b767665aa8f091/S&P 500 Complete Historical Dataset.zip']
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 | CPIAUCSL float64 |
|---|---|
1970-01-01 | 37.9 |
1970-02-01 | 38.1 |
1970-03-01 | 38.3 |
1970-04-01 | 38.5 |
1970-05-01 | 38.6 |
1970-06-01 | 38.8 |
1970-07-01 | 38.9 |
1970-08-01 | 39 |
1970-09-01 | 39.2 |
1970-10-01 | 39.4 |
1970-11-01 | 39.6 |
1970-12-01 | 39.8 |
1971-01-01 | 39.9 |
1971-02-01 | 39.9 |
1971-03-01 | 40 |
1971-04-01 | 40.1 |
1971-05-01 | 40.3 |
1971-06-01 | 40.5 |
1971-07-01 | 40.6 |
1971-08-01 | 40.7 |
1971-09-01 | 40.8 |
1971-10-01 | 40.9 |
1971-11-01 | 41 |
1971-12-01 | 41.1 |
1972-01-01 | 41.2 |
1972-02-01 | 41.4 |
1972-03-01 | 41.4 |
1972-04-01 | 41.5 |
1972-05-01 | 41.6 |
1972-06-01 | 41.7 |
1972-07-01 | 41.8 |
1972-08-01 | 41.9 |
1972-09-01 | 42.1 |
1972-10-01 | 42.2 |
1972-11-01 | 42.4 |
1972-12-01 | 42.5 |
1973-01-01 | 42.7 |
1973-02-01 | 43 |
1973-03-01 | 43.4 |
1973-04-01 | 43.7 |
1973-05-01 | 43.9 |
1973-06-01 | 44.2 |
1973-07-01 | 44.2 |
1973-08-01 | 45 |
1973-09-01 | 45.2 |
1973-10-01 | 45.6 |
1973-11-01 | 45.9 |
1973-12-01 | 46.3 |
1974-01-01 | 46.8 |
1974-02-01 | 47.3 |
1974-03-01 | 47.8 |
1974-04-01 | 48.1 |
1974-05-01 | 48.6 |
1974-06-01 | 49 |
1974-07-01 | 49.3 |
1974-08-01 | 49.9 |
1974-09-01 | 50.6 |
1974-10-01 | 51 |
1974-11-01 | 51.5 |
1974-12-01 | 51.9 |
1975-01-01 | 52.3 |
1975-02-01 | 52.6 |
1975-03-01 | 52.8 |
1975-04-01 | 53 |
1975-05-01 | 53.1 |
1975-06-01 | 53.5 |
1975-07-01 | 54 |
1975-08-01 | 54.2 |
1975-09-01 | 54.6 |
1975-10-01 | 54.9 |
1975-11-01 | 55.3 |
1975-12-01 | 55.6 |
1976-01-01 | 55.8 |
1976-02-01 | 55.9 |
1976-03-01 | 56 |
1976-04-01 | 56.1 |
1976-05-01 | 56.4 |
1976-06-01 | 56.7 |
1976-07-01 | 57 |
1976-08-01 | 57.3 |
1976-09-01 | 57.6 |
1976-10-01 | 57.9 |
1976-11-01 | 58.1 |
1976-12-01 | 58.4 |
1977-01-01 | 58.7 |
1977-02-01 | 59.3 |
1977-03-01 | 59.6 |
1977-04-01 | 60 |
1977-05-01 | 60.2 |
1977-06-01 | 60.5 |
1977-07-01 | 60.8 |
1977-08-01 | 61.1 |
1977-09-01 | 61.3 |
1977-10-01 | 61.6 |
1977-11-01 | 62 |
1977-12-01 | 62.3 |
1978-01-01 | 62.7 |
1978-02-01 | 63 |
1978-03-01 | 63.4 |
1978-04-01 | 63.9 |
End of preview.
S&P 500 Complete Historical Dataset
This dataset was published on Kaggle by Samyakraj Bayar and mirrored here.
Download
The dataset is available as a ZIP archive: S&P 500 Complete Historical Dataset.zip
License
MIT
- Downloads last month
- 38