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 2 new columns ({'ecg_id', 'strat_fold'}) and 4 missing columns ({'subject_id', 'ecg_time', 'study_id', 'path'}).

This happened while the csv dataset builder was generating data using

hf://datasets/vlbthambawita/ECGDatasets/ptbxl/clean_records.csv (at revision f85c981fb91d6e007cc90c12934bcdcfe63b27e6), [/tmp/hf-datasets-cache/medium/datasets/57960360849046-config-parquet-and-info-vlbthambawita-ECGDatasets-22428e54/hub/datasets--vlbthambawita--ECGDatasets/snapshots/f85c981fb91d6e007cc90c12934bcdcfe63b27e6/mimic_iv_ecg/clean_records.csv (origin=hf://datasets/vlbthambawita/ECGDatasets@f85c981fb91d6e007cc90c12934bcdcfe63b27e6/mimic_iv_ecg/clean_records.csv), /tmp/hf-datasets-cache/medium/datasets/57960360849046-config-parquet-and-info-vlbthambawita-ECGDatasets-22428e54/hub/datasets--vlbthambawita--ECGDatasets/snapshots/f85c981fb91d6e007cc90c12934bcdcfe63b27e6/ptbxl/clean_records.csv (origin=hf://datasets/vlbthambawita/ECGDatasets@f85c981fb91d6e007cc90c12934bcdcfe63b27e6/ptbxl/clean_records.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.12/site-packages/datasets/builder.py", line 1890, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 760, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              ecg_id: int64
              strat_fold: int64
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 489
              to
              {'study_id': Value('int64'), 'subject_id': Value('int64'), 'ecg_time': Value('string'), 'path': 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 1347, 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 980, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1892, 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 2 new columns ({'ecg_id', 'strat_fold'}) and 4 missing columns ({'subject_id', 'ecg_time', 'study_id', 'path'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/vlbthambawita/ECGDatasets/ptbxl/clean_records.csv (at revision f85c981fb91d6e007cc90c12934bcdcfe63b27e6), [/tmp/hf-datasets-cache/medium/datasets/57960360849046-config-parquet-and-info-vlbthambawita-ECGDatasets-22428e54/hub/datasets--vlbthambawita--ECGDatasets/snapshots/f85c981fb91d6e007cc90c12934bcdcfe63b27e6/mimic_iv_ecg/clean_records.csv (origin=hf://datasets/vlbthambawita/ECGDatasets@f85c981fb91d6e007cc90c12934bcdcfe63b27e6/mimic_iv_ecg/clean_records.csv), /tmp/hf-datasets-cache/medium/datasets/57960360849046-config-parquet-and-info-vlbthambawita-ECGDatasets-22428e54/hub/datasets--vlbthambawita--ECGDatasets/snapshots/f85c981fb91d6e007cc90c12934bcdcfe63b27e6/ptbxl/clean_records.csv (origin=hf://datasets/vlbthambawita/ECGDatasets@f85c981fb91d6e007cc90c12934bcdcfe63b27e6/ptbxl/clean_records.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.

study_id
int64
subject_id
int64
ecg_time
string
path
string
40,689,238
10,000,032
2180-07-23 08:44:00
files/p1000/p10000032/s40689238/40689238
44,458,630
10,000,032
2180-07-23 09:54:00
files/p1000/p10000032/s44458630/44458630
49,036,311
10,000,032
2180-08-06 09:07:00
files/p1000/p10000032/s49036311/49036311
45,090,959
10,000,117
2181-03-04 17:14:00
files/p1000/p10000117/s45090959/45090959
48,446,569
10,000,117
2183-09-18 13:52:00
files/p1000/p10000117/s48446569/48446569
42,709,053
10,000,285
2159-11-26 14:29:00
files/p1000/p10000285/s42709053/42709053
41,445,586
10,000,560
2189-10-03 12:54:00
files/p1000/p10000560/s41445586/41445586
42,695,383
10,000,560
2198-09-19 10:01:00
files/p1000/p10000560/s42695383/42695383
40,067,704
10,000,635
2136-06-19 07:24:00
files/p1000/p10000635/s40067704/40067704
48,339,811
10,000,635
2136-06-20 08:54:00
files/p1000/p10000635/s48339811/48339811
45,386,375
10,000,635
2136-07-05 12:35:00
files/p1000/p10000635/s45386375/45386375
43,522,917
10,000,635
2137-02-07 13:58:00
files/p1000/p10000635/s43522917/43522917
44,095,784
10,000,635
2138-09-29 11:09:00
files/p1000/p10000635/s44095784/44095784
42,947,358
10,000,635
2139-01-22 14:09:00
files/p1000/p10000635/s42947358/42947358
47,218,930
10,000,764
2132-10-14 19:40:00
files/p1000/p10000764/s47218930/47218930
44,069,449
10,000,764
2132-10-15 07:12:00
files/p1000/p10000764/s44069449/44069449
44,837,313
10,000,764
2132-10-15 08:39:00
files/p1000/p10000764/s44837313/44837313
40,539,087
10,000,764
2132-10-16 09:54:00
files/p1000/p10000764/s40539087/40539087
43,681,375
10,000,764
2132-10-17 08:31:00
files/p1000/p10000764/s43681375/43681375
40,695,233
10,000,826
2146-12-12 08:42:00
files/p1000/p10000826/s40695233/40695233
40,894,787
10,000,826
2146-12-30 17:16:00
files/p1000/p10000826/s40894787/40894787
44,986,768
10,000,898
2184-04-12 12:14:00
files/p1000/p10000898/s44986768/44986768
46,049,322
10,000,898
2185-08-15 13:51:00
files/p1000/p10000898/s46049322/46049322
48,575,806
10,000,898
2187-09-24 13:26:00
files/p1000/p10000898/s48575806/48575806
42,413,061
10,000,898
2188-03-12 12:04:00
files/p1000/p10000898/s42413061/42413061
43,492,795
10,000,898
2188-03-13 14:32:00
files/p1000/p10000898/s43492795/43492795
40,746,075
10,000,898
2188-03-13 14:34:00
files/p1000/p10000898/s40746075/40746075
41,557,927
10,000,935
2183-10-28 05:45:00
files/p1000/p10000935/s41557927/41557927
48,142,435
10,000,935
2184-07-09 08:31:00
files/p1000/p10000935/s48142435/48142435
45,594,411
10,000,935
2186-07-30 15:13:00
files/p1000/p10000935/s45594411/45594411
41,798,696
10,000,935
2187-07-11 21:51:00
files/p1000/p10000935/s41798696/41798696
40,761,639
10,000,935
2187-08-25 14:59:00
files/p1000/p10000935/s40761639/40761639
48,582,094
10,000,935
2187-10-10 20:39:00
files/p1000/p10000935/s48582094/48582094
40,742,173
10,000,980
2186-06-09 15:18:00
files/p1000/p10000980/s40742173/40742173
47,499,371
10,000,980
2187-02-21 01:21:00
files/p1000/p10000980/s47499371/47499371
42,546,971
10,000,980
2188-01-03 12:33:00
files/p1000/p10000980/s42546971/42546971
47,004,256
10,000,980
2188-01-03 19:56:00
files/p1000/p10000980/s47004256/47004256
49,560,547
10,000,980
2188-01-04 16:43:00
files/p1000/p10000980/s49560547/49560547
48,376,834
10,000,980
2189-06-27 06:43:00
files/p1000/p10000980/s48376834/48376834
46,293,961
10,000,980
2189-06-27 06:47:00
files/p1000/p10000980/s46293961/46293961
49,245,181
10,000,980
2189-06-27 07:58:00
files/p1000/p10000980/s49245181/49245181
49,144,190
10,000,980
2189-06-27 10:24:00
files/p1000/p10000980/s49144190/49144190
42,742,896
10,000,980
2189-06-27 14:36:00
files/p1000/p10000980/s42742896/42742896
41,366,957
10,000,980
2189-06-27 14:55:00
files/p1000/p10000980/s41366957/41366957
49,202,548
10,000,980
2189-06-30 16:15:00
files/p1000/p10000980/s49202548/49202548
48,150,809
10,000,980
2189-06-30 18:19:00
files/p1000/p10000980/s48150809/48150809
42,368,611
10,000,980
2189-08-21 14:20:00
files/p1000/p10000980/s42368611/42368611
43,143,228
10,000,980
2190-11-06 14:00:00
files/p1000/p10000980/s43143228/43143228
46,642,833
10,000,980
2190-11-06 15:50:00
files/p1000/p10000980/s46642833/46642833
49,961,002
10,000,980
2190-11-06 15:52:00
files/p1000/p10000980/s49961002/49961002
40,816,324
10,000,980
2190-11-06 21:38:00
files/p1000/p10000980/s40816324/40816324
44,669,583
10,000,980
2190-12-19 13:02:00
files/p1000/p10000980/s44669583/44669583
47,544,594
10,000,980
2191-02-19 12:11:00
files/p1000/p10000980/s47544594/47544594
43,744,967
10,000,980
2191-04-03 22:01:00
files/p1000/p10000980/s43744967/43744967
45,832,921
10,000,980
2191-05-22 18:49:00
files/p1000/p10000980/s45832921/45832921
43,013,697
10,000,980
2191-05-30 11:02:00
files/p1000/p10000980/s43013697/43013697
42,178,586
10,000,980
2191-06-13 07:59:00
files/p1000/p10000980/s42178586/42178586
46,543,372
10,000,980
2191-07-03 15:45:00
files/p1000/p10000980/s46543372/46543372
42,855,628
10,000,980
2191-07-16 11:05:00
files/p1000/p10000980/s42855628/42855628
45,105,401
10,000,980
2191-10-14 14:09:00
files/p1000/p10000980/s45105401/45105401
46,857,734
10,000,980
2193-05-14 12:52:00
files/p1000/p10000980/s46857734/46857734
48,288,896
10,000,980
2193-05-26 15:10:00
files/p1000/p10000980/s48288896/48288896
48,778,222
10,000,980
2193-08-14 23:13:00
files/p1000/p10000980/s48778222/48778222
48,132,909
10,000,980
2193-08-15 10:45:00
files/p1000/p10000980/s48132909/48132909
41,309,390
10,000,980
2193-08-15 16:41:00
files/p1000/p10000980/s41309390/41309390
47,286,409
10,001,122
2142-04-08 09:04:00
files/p1000/p10001122/s47286409/47286409
40,925,049
10,001,176
2186-11-28 23:16:00
files/p1000/p10001176/s40925049/40925049
45,986,118
10,001,186
2188-09-24 13:13:00
files/p1000/p10001186/s45986118/45986118
41,997,536
10,001,186
2188-09-25 08:34:00
files/p1000/p10001186/s41997536/41997536
43,468,501
10,001,186
2190-07-11 14:02:00
files/p1000/p10001186/s43468501/43468501
43,576,724
10,001,217
2157-11-18 18:26:00
files/p1000/p10001217/s43576724/43576724
49,758,073
10,001,217
2157-11-20 09:08:00
files/p1000/p10001217/s49758073/49758073
46,440,135
10,001,338
2141-07-07 08:35:00
files/p1000/p10001338/s46440135/46440135
46,743,816
10,001,338
2141-07-07 15:16:00
files/p1000/p10001338/s46743816/46743816
42,790,963
10,001,401
2131-05-21 11:09:00
files/p1000/p10001401/s42790963/42790963
44,102,194
10,001,401
2131-06-19 17:28:00
files/p1000/p10001401/s44102194/44102194
49,368,993
10,001,401
2131-07-30 13:04:00
files/p1000/p10001401/s49368993/49368993
40,341,634
10,001,401
2131-07-30 17:04:00
files/p1000/p10001401/s40341634/40341634
48,531,703
10,001,401
2131-10-01 12:39:00
files/p1000/p10001401/s48531703/48531703
49,500,365
10,001,401
2131-11-13 18:21:00
files/p1000/p10001401/s49500365/49500365
49,466,912
10,001,401
2131-11-14 03:16:00
files/p1000/p10001401/s49466912/49466912
47,226,536
10,001,492
2136-09-23 11:50:00
files/p1000/p10001492/s47226536/47226536
47,863,823
10,001,492
2136-09-24 04:11:00
files/p1000/p10001492/s47863823/47863823
42,186,899
10,001,492
2136-09-24 09:41:00
files/p1000/p10001492/s42186899/42186899
41,103,859
10,001,492
2136-09-24 13:49:00
files/p1000/p10001492/s41103859/41103859
45,842,645
10,001,492
2136-09-25 11:39:00
files/p1000/p10001492/s45842645/45842645
43,749,278
10,001,629
2171-03-27 14:47:00
files/p1000/p10001629/s43749278/43749278
46,034,277
10,001,629
2177-10-09 15:04:00
files/p1000/p10001629/s46034277/46034277
42,060,926
10,001,663
2145-03-14 23:12:00
files/p1000/p10001663/s42060926/42060926
43,742,645
10,001,663
2150-06-14 08:42:00
files/p1000/p10001663/s43742645/43742645
41,420,867
10,001,725
2110-06-08 14:39:00
files/p1000/p10001725/s41420867/41420867
41,800,350
10,001,757
2170-10-15 11:14:00
files/p1000/p10001757/s41800350/41800350
44,881,309
10,001,843
2131-11-09 13:20:00
files/p1000/p10001843/s44881309/44881309
43,647,002
10,001,843
2131-11-10 09:04:00
files/p1000/p10001843/s43647002/43647002
47,843,381
10,001,843
2131-12-12 07:03:00
files/p1000/p10001843/s47843381/47843381
45,896,667
10,001,843
2131-12-12 08:44:00
files/p1000/p10001843/s45896667/45896667
45,808,859
10,001,860
2188-03-28 07:39:00
files/p1000/p10001860/s45808859/45808859
40,056,908
10,001,877
2149-05-21 11:32:00
files/p1000/p10001877/s40056908/40056908
41,316,269
10,001,877
2149-05-25 02:44:00
files/p1000/p10001877/s41316269/41316269
46,566,322
10,001,877
2150-11-21 18:48:00
files/p1000/p10001877/s46566322/46566322
End of preview.

ECG Metadata - Clean Record Splits

Clean ECG record IDs curated from the ECGDatasets catalogue. Each CSV lists the record IDs that pass all quality filters.

Version: v0.13.0
Commit: 633cfcad1f1c

Files

Dataset File Clean records
ptbxl ptbxl/clean_records.csv 21,836

Generated automatically by ECGDatasets CI.

Downloads last month
40