lc2004/kronos_base_model_BTCUSDT_1h_finetune
Updated
• 17 • 1
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 8 new columns ({'duration_days', 'price_stats', 'total_records', 'end_time', 'interval', 'symbol', 'start_time', 'volume_stats'}) and 7 missing columns ({'low', 'amount', 'open', 'volume', 'high', 'timestamp', 'close'}).
This happened while the json dataset builder was generating data using
hf://datasets/lc2004/BTCUSDT-1-hour-candles/BTCUSDT_1h_20251018_220012_stats.json (at revision f6857dcd41cdd9a2081fe7f49198f829d2797d00)
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 "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
symbol: string
interval: string
total_records: int64
start_time: timestamp[s]
end_time: timestamp[s]
duration_days: int64
price_stats: struct<min: double, max: double, avg: double, first: double, last: double, change: double, change_pe (... 14 chars omitted)
child 0, min: double
child 1, max: double
child 2, avg: double
child 3, first: double
child 4, last: double
child 5, change: double
child 6, change_percent: double
volume_stats: struct<total: double, avg: double, min: double, max: double>
child 0, total: double
child 1, avg: double
child 2, min: double
child 3, max: double
to
{'timestamp': Value('timestamp[ns]'), 'open': Value('float64'), 'high': Value('float64'), 'low': Value('float64'), 'close': Value('float64'), 'volume': Value('float64'), 'amount': 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 1455, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1054, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
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 8 new columns ({'duration_days', 'price_stats', 'total_records', 'end_time', 'interval', 'symbol', 'start_time', 'volume_stats'}) and 7 missing columns ({'low', 'amount', 'open', 'volume', 'high', 'timestamp', 'close'}).
This happened while the json dataset builder was generating data using
hf://datasets/lc2004/BTCUSDT-1-hour-candles/BTCUSDT_1h_20251018_220012_stats.json (at revision f6857dcd41cdd9a2081fe7f49198f829d2797d00)
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.
timestamp timestamp[us] | open float64 | high float64 | low float64 | close float64 | volume float64 | amount float64 |
|---|---|---|---|---|---|---|
2023-10-19T14:00:00 | 28,482.1 | 28,750.57 | 28,444.64 | 28,680.45 | 3,017.42212 | 86,267,965.620687 |
2023-10-19T15:00:00 | 28,680.45 | 28,814.14 | 28,569.28 | 28,680.09 | 3,242.76977 | 93,044,459.15406 |
2023-10-19T16:00:00 | 28,680.09 | 28,916.89 | 28,606.32 | 28,620.01 | 3,891.53983 | 111,887,693.294868 |
2023-10-19T17:00:00 | 28,620.01 | 28,692.48 | 28,457.56 | 28,547.24 | 1,699.11214 | 48,562,824.960367 |
2023-10-19T18:00:00 | 28,547.24 | 28,691.42 | 28,525 | 28,646.98 | 1,401.60664 | 40,118,201.223201 |
2023-10-19T19:00:00 | 28,646.98 | 28,765.76 | 28,645 | 28,750.75 | 1,039.20935 | 29,840,590.850769 |
2023-10-19T20:00:00 | 28,750.75 | 28,882.07 | 28,684.8 | 28,715.38 | 1,737.14711 | 49,976,233.587986 |
2023-10-19T21:00:00 | 28,715.39 | 28,739.73 | 28,604.09 | 28,604.09 | 1,118.51697 | 32,056,663.428467 |
2023-10-19T22:00:00 | 28,604.09 | 28,704.99 | 28,598.6 | 28,649.65 | 767.85518 | 22,004,202.691069 |
2023-10-19T23:00:00 | 28,649.64 | 28,717.82 | 28,630.19 | 28,713.71 | 613.28448 | 17,582,980.996626 |
2023-10-20T00:00:00 | 28,713.71 | 28,772.32 | 28,636.36 | 28,640 | 886.04818 | 25,431,529.090045 |
2023-10-20T01:00:00 | 28,640.01 | 28,659.5 | 28,578.29 | 28,659.5 | 641.25821 | 18,354,125.83169 |
2023-10-20T02:00:00 | 28,659.49 | 29,123 | 28,641.32 | 28,980 | 3,293.78291 | 95,260,546.635247 |
2023-10-20T03:00:00 | 28,980 | 29,400 | 28,920 | 29,235.38 | 4,342.5285 | 126,753,070.54254 |
2023-10-20T04:00:00 | 29,235.37 | 29,350 | 29,175.17 | 29,318.54 | 2,399.04103 | 70,198,014.748811 |
2023-10-20T05:00:00 | 29,318.53 | 29,345.58 | 29,111.28 | 29,221.75 | 3,773.80305 | 110,132,370.814658 |
2023-10-20T06:00:00 | 29,221.75 | 29,289.93 | 29,179.96 | 29,282.6 | 1,150.69416 | 33,632,843.846175 |
2023-10-20T07:00:00 | 29,282.61 | 29,400 | 29,218.33 | 29,240.51 | 2,515.93635 | 73,700,772.646284 |
2023-10-20T08:00:00 | 29,240.52 | 29,845.17 | 29,227.75 | 29,731.84 | 5,676.49006 | 168,082,976.110063 |
2023-10-20T09:00:00 | 29,731.84 | 29,829.47 | 29,651.68 | 29,798.11 | 2,913.18707 | 86,674,646.814923 |
2023-10-20T10:00:00 | 29,798.1 | 30,207.55 | 29,770.06 | 29,850.01 | 7,350.03325 | 220,189,601.884554 |
2023-10-20T11:00:00 | 29,850 | 30,038.3 | 29,795.44 | 29,839.99 | 3,310.20533 | 99,048,924.196719 |
2023-10-20T12:00:00 | 29,839.99 | 29,910 | 29,380 | 29,509.21 | 5,509.99911 | 163,216,701.351745 |
2023-10-20T13:00:00 | 29,509.21 | 29,665.07 | 29,458.18 | 29,654.64 | 2,744.51174 | 81,113,366.166216 |
2023-10-20T14:00:00 | 29,654.64 | 29,730.5 | 29,413.31 | 29,586.19 | 2,408.38097 | 71,181,560.269892 |
2023-10-20T15:00:00 | 29,586.2 | 29,600 | 29,486 | 29,550.98 | 1,652.00002 | 48,802,612.554462 |
2023-10-20T16:00:00 | 29,550.98 | 29,592.71 | 29,445 | 29,492.87 | 1,515.07822 | 44,731,183.732018 |
2023-10-20T17:00:00 | 29,492.87 | 29,526.62 | 29,321 | 29,516.38 | 1,521.23547 | 44,795,747.642225 |
2023-10-20T18:00:00 | 29,516.38 | 29,554.77 | 29,470 | 29,485.76 | 907.44966 | 26,776,908.482009 |
2023-10-20T19:00:00 | 29,485.76 | 29,567.71 | 29,400 | 29,561.41 | 1,132.22706 | 33,373,441.112044 |
2023-10-20T20:00:00 | 29,561.4 | 29,641.36 | 29,513.5 | 29,580.92 | 1,576.97757 | 46,659,028.479569 |
2023-10-20T21:00:00 | 29,580.93 | 29,642.45 | 29,577.83 | 29,614.79 | 576.88467 | 17,085,973.044595 |
2023-10-20T22:00:00 | 29,614.79 | 29,674.6 | 29,595.29 | 29,661.67 | 584.4107 | 17,314,948.383356 |
2023-10-20T23:00:00 | 29,661.66 | 29,790.59 | 29,652.27 | 29,669.04 | 1,039.93591 | 30,900,298.171253 |
2023-10-21T00:00:00 | 29,669.05 | 29,699.68 | 29,585.06 | 29,628.16 | 836.69196 | 24,811,067.655001 |
2023-10-21T01:00:00 | 29,628.15 | 29,631.79 | 29,514.19 | 29,533.88 | 667.51854 | 19,744,399.877468 |
2023-10-21T02:00:00 | 29,533.87 | 29,539.35 | 29,465.53 | 29,486.96 | 752.92738 | 22,212,161.949453 |
2023-10-21T03:00:00 | 29,486.96 | 29,624.58 | 29,464.77 | 29,604.43 | 740.04199 | 21,862,838.699607 |
2023-10-21T04:00:00 | 29,604.42 | 29,627.8 | 29,553.53 | 29,556.13 | 661.39 | 19,569,174.572181 |
2023-10-21T05:00:00 | 29,556.13 | 29,584.91 | 29,541.86 | 29,578.66 | 380.65705 | 11,253,012.83897 |
2023-10-21T06:00:00 | 29,578.65 | 29,730.88 | 29,578.65 | 29,705 | 973.51681 | 28,885,837.19877 |
2023-10-21T07:00:00 | 29,704.99 | 29,723.63 | 29,651.78 | 29,695.8 | 560.64906 | 16,646,182.842501 |
2023-10-21T08:00:00 | 29,695.8 | 29,719.43 | 29,656.24 | 29,662.3 | 508.21586 | 15,085,719.547031 |
2023-10-21T09:00:00 | 29,662.29 | 29,866 | 29,634.56 | 29,843.42 | 1,509.01018 | 44,889,114.190731 |
2023-10-21T10:00:00 | 29,843.41 | 29,878.83 | 29,755.72 | 29,772.48 | 1,138.8611 | 33,938,523.24938 |
2023-10-21T11:00:00 | 29,772.49 | 29,850.1 | 29,765.67 | 29,804.99 | 1,327.9955 | 39,583,637.114855 |
2023-10-21T12:00:00 | 29,804.99 | 29,833.03 | 29,744.98 | 29,768.27 | 1,029.79584 | 30,677,817.391389 |
2023-10-21T13:00:00 | 29,768.28 | 29,798.32 | 29,678.69 | 29,775.48 | 1,018.96783 | 30,308,164.587937 |
2023-10-21T14:00:00 | 29,775.49 | 29,921.68 | 29,752.76 | 29,884.1 | 1,621.77159 | 48,366,282.467256 |
2023-10-21T15:00:00 | 29,884.1 | 29,980 | 29,771.46 | 29,937.36 | 1,895.23623 | 56,667,782.893257 |
2023-10-21T16:00:00 | 29,937.37 | 29,974.26 | 29,846 | 29,867.41 | 1,190.57162 | 35,609,687.640549 |
2023-10-21T17:00:00 | 29,867.41 | 30,180 | 29,848.32 | 30,146.68 | 2,516.74631 | 75,600,152.441458 |
2023-10-21T18:00:00 | 30,146.67 | 30,379.99 | 29,964.41 | 30,206.23 | 3,650.11171 | 109,984,347.169078 |
2023-10-21T19:00:00 | 30,206.23 | 30,280 | 30,028.96 | 30,145.04 | 1,409.58472 | 42,481,722.734324 |
2023-10-21T20:00:00 | 30,145.03 | 30,158.2 | 29,931.38 | 30,015.7 | 1,318.03933 | 39,576,574.776224 |
2023-10-21T21:00:00 | 30,015.69 | 30,057.4 | 29,974.98 | 29,984.31 | 542.37956 | 16,280,680.282979 |
2023-10-21T22:00:00 | 29,984.32 | 30,033.38 | 29,945.63 | 29,996.65 | 469.22178 | 14,071,277.6151 |
2023-10-21T23:00:00 | 29,996.65 | 29,996.66 | 29,850 | 29,909.8 | 797.61702 | 23,858,348.699866 |
2023-10-22T00:00:00 | 29,909.8 | 30,009.01 | 29,885 | 29,971.78 | 882.92699 | 26,441,615.668116 |
2023-10-22T01:00:00 | 29,971.78 | 30,075 | 29,860.01 | 29,928.73 | 1,119.90596 | 33,548,283.196382 |
2023-10-22T02:00:00 | 29,928.73 | 29,928.74 | 29,843.2 | 29,862.46 | 789.67678 | 23,588,480.979333 |
2023-10-22T03:00:00 | 29,862.45 | 29,912.53 | 29,843.49 | 29,907.38 | 412.16594 | 12,314,709.737661 |
2023-10-22T04:00:00 | 29,907.38 | 29,996 | 29,897.8 | 29,954.71 | 742.9553 | 22,249,897.509251 |
2023-10-22T05:00:00 | 29,954.71 | 30,248 | 29,954.7 | 30,114.51 | 2,378.97657 | 71,560,795.041434 |
2023-10-22T06:00:00 | 30,114.52 | 30,215.09 | 30,053.86 | 30,078.5 | 1,230.76393 | 37,079,978.158119 |
2023-10-22T07:00:00 | 30,078.5 | 30,078.51 | 29,640 | 29,816.26 | 2,717.43028 | 81,070,338.508331 |
2023-10-22T08:00:00 | 29,816.27 | 29,882.79 | 29,780.11 | 29,832.09 | 1,031.98806 | 30,786,954.018815 |
2023-10-22T09:00:00 | 29,832.09 | 29,991.05 | 29,820 | 29,880.43 | 1,046.96843 | 31,326,023.855243 |
2023-10-22T10:00:00 | 29,880.42 | 29,951.15 | 29,861.8 | 29,898.16 | 526.02559 | 15,732,499.706734 |
2023-10-22T11:00:00 | 29,898.15 | 29,929.92 | 29,820.84 | 29,909.67 | 721.40365 | 21,557,618.12585 |
2023-10-22T12:00:00 | 29,909.66 | 29,951.94 | 29,868.96 | 29,895.85 | 679.72097 | 20,336,357.984231 |
2023-10-22T13:00:00 | 29,895.85 | 29,974.46 | 29,887.35 | 29,945.4 | 557.4867 | 16,688,380.566519 |
2023-10-22T14:00:00 | 29,945.4 | 29,952.78 | 29,781 | 29,875 | 1,075.34299 | 32,120,187.317678 |
2023-10-22T15:00:00 | 29,874.99 | 29,876.75 | 29,785.52 | 29,825.6 | 822.2449 | 24,533,889.329103 |
2023-10-22T16:00:00 | 29,825.61 | 29,888 | 29,805.13 | 29,869.99 | 721.70616 | 21,547,135.567779 |
2023-10-22T17:00:00 | 29,870 | 29,946.77 | 29,869.99 | 29,914.51 | 661.28097 | 19,780,418.096178 |
2023-10-22T18:00:00 | 29,914.51 | 29,932.4 | 29,883.6 | 29,883.6 | 409.92203 | 12,258,224.186282 |
2023-10-22T19:00:00 | 29,883.6 | 29,930 | 29,825 | 29,842.75 | 527.19743 | 15,755,330.140106 |
2023-10-22T20:00:00 | 29,842.75 | 29,882.36 | 29,830.09 | 29,848.15 | 431.38845 | 12,880,521.316866 |
2023-10-22T21:00:00 | 29,848.15 | 29,850 | 29,720 | 29,750.01 | 531.99849 | 15,854,914.23972 |
2023-10-22T22:00:00 | 29,750.01 | 30,048.58 | 29,714.28 | 30,038.99 | 1,945.18541 | 58,227,606.19652 |
2023-10-22T23:00:00 | 30,039 | 30,051.79 | 29,920.28 | 29,992.46 | 887.88365 | 26,614,668.450684 |
2023-10-23T00:00:00 | 29,992.46 | 30,168 | 29,883.6 | 30,120 | 1,458.87679 | 43,789,505.004748 |
2023-10-23T01:00:00 | 30,120.01 | 30,637.77 | 30,076.9 | 30,346.83 | 5,706.80302 | 173,154,034.223661 |
2023-10-23T02:00:00 | 30,346.83 | 30,398 | 30,180.23 | 30,378.23 | 1,683.13954 | 50,992,184.72565 |
2023-10-23T03:00:00 | 30,378.22 | 30,799 | 30,291.43 | 30,736.69 | 3,758.1898 | 114,872,503.016079 |
2023-10-23T04:00:00 | 30,736.68 | 30,858 | 30,565 | 30,658.65 | 2,841.11287 | 87,194,944.012294 |
2023-10-23T05:00:00 | 30,658.64 | 30,943.15 | 30,587.7 | 30,788.62 | 3,200.47474 | 98,604,331.791928 |
2023-10-23T06:00:00 | 30,788.62 | 30,985.12 | 30,671.64 | 30,671.65 | 2,742.51699 | 84,476,814.715235 |
2023-10-23T07:00:00 | 30,671.65 | 30,755.9 | 30,426.82 | 30,518.02 | 2,291.86736 | 70,175,045.008703 |
2023-10-23T08:00:00 | 30,518.02 | 30,717.21 | 30,466.66 | 30,686.78 | 1,947.32271 | 59,521,051.340884 |
2023-10-23T09:00:00 | 30,686.78 | 30,698.03 | 30,355.06 | 30,477.7 | 2,766.81533 | 84,376,175.387502 |
2023-10-23T10:00:00 | 30,477.7 | 30,572 | 30,470.53 | 30,559.53 | 1,067.16547 | 32,567,625.951389 |
2023-10-23T11:00:00 | 30,559.52 | 30,784.54 | 30,551.18 | 30,657.04 | 1,859.23445 | 56,964,048.470797 |
2023-10-23T12:00:00 | 30,657.04 | 30,754.99 | 30,585 | 30,662.82 | 1,554.0842 | 47,646,510.864136 |
2023-10-23T13:00:00 | 30,662.82 | 30,710.94 | 30,395.01 | 30,610 | 2,272.90482 | 69,456,956.711993 |
2023-10-23T14:00:00 | 30,610 | 30,850 | 30,592.82 | 30,779.39 | 2,224.42469 | 68,319,145.45221 |
2023-10-23T15:00:00 | 30,779.39 | 30,970 | 30,757.01 | 30,883.33 | 2,782.44782 | 85,873,050.542223 |
2023-10-23T16:00:00 | 30,883.33 | 31,289 | 30,782.59 | 31,212.19 | 5,979.64474 | 185,502,911.918737 |
2023-10-23T17:00:00 | 31,212.2 | 31,317.22 | 30,820.14 | 30,979.74 | 4,367.185 | 135,689,221.514353 |