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 39 new columns ({'ac', 'younger', 'female', 'ur', 'fip', 'trend', 'perc1519', 'male', 'totpop', 'aids', 'lnr', 'wht', 'totcase', 'poverty', 'tsq', 'sex', 'black', 'pi', 'year', 'wf15', 'age', 'id', 'bf15', 'wm15', 'blk', 'aidscapita', 'rate', 't', 'ir', 'repeal', 'perc', 'income', 'race', 'totrate', 'crack', 'fa', 'alcohol', 'acc', 'bm15'}) and 10 missing columns ({'net', 'firstname', 'region', 'margin.pre', 'gross', 'yod', 'surname', 'party', 'margin', 'yob'}).

This happened while the csv dataset builder was generating data using

hf://datasets/causal-nlp/causcibench_data/all_data/abortion_bf15.csv (at revision 9bb71bbd33e6cdd516c4185f5101872c11561f66)

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 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, 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
              fip: double
              age: double
              race: double
              year: double
              sex: int64
              totcase: double
              totpop: int64
              rate: double
              totrate: double
              id: double
              ir: double
              crack: double
              alcohol: double
              income: double
              ur: double
              poverty: double
              black: double
              perc1519: double
              perc: double
              repeal: double
              aids: double
              aidscapita: double
              ac: double
              acc: double
              trend: double
              tsq: double
              blk: double
              wht: double
              male: double
              female: double
              lnr: double
              t: double
              younger: double
              fa: double
              pi: double
              wm15: double
              wf15: double
              bm15: double
              bf15: double
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 4530
              to
              {'surname': Value('string'), 'firstname': Value('string'), 'party': Value('string'), 'gross': Value('float64'), 'net': Value('float64'), 'yob': Value('float64'), 'yod': Value('int64'), 'margin.pre': Value('float64'), 'region': Value('string'), 'margin': 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 1339, 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 972, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, 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 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 39 new columns ({'ac', 'younger', 'female', 'ur', 'fip', 'trend', 'perc1519', 'male', 'totpop', 'aids', 'lnr', 'wht', 'totcase', 'poverty', 'tsq', 'sex', 'black', 'pi', 'year', 'wf15', 'age', 'id', 'bf15', 'wm15', 'blk', 'aidscapita', 'rate', 't', 'ir', 'repeal', 'perc', 'income', 'race', 'totrate', 'crack', 'fa', 'alcohol', 'acc', 'bm15'}) and 10 missing columns ({'net', 'firstname', 'region', 'margin.pre', 'gross', 'yod', 'surname', 'party', 'margin', 'yob'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/causal-nlp/causcibench_data/all_data/abortion_bf15.csv (at revision 9bb71bbd33e6cdd516c4185f5101872c11561f66)
              
              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.

surname
string
firstname
string
party
string
gross
float64
net
float64
yob
float64
yod
int64
margin.pre
float64
region
string
margin
float64
Llewellyn
David
tory
12.135906
12.135906
1,916
1,992
null
Wales
0.056904
Morris
Claud
labour
12.448091
12.448091
1,920
2,000
null
South West England
-0.049738
Walker
George
tory
12.42845
10.349009
1,914
1,999
-0.057168
North East England
-0.041589
Walker
Harold
labour
11.918452
12.395034
1,927
2,003
-0.072509
Yorkshire and Humberside
0.023295
Waring
John
tory
13.520219
13.520219
1,923
1,989
-0.26969
Greater London
-0.230006
Brown
Ronald
labour
12.460515
9.631837
1,921
2,002
0.340959
Greater London
0.36797
Pine
Leslie
tory
11.985836
11.985836
1,907
1,987
-0.210567
South West England
-0.072641
Pink
Bonner
tory
11.634031
11.634031
1,912
1,984
0.273772
South East England
0.212945
Webster
Reginald
tory
12.516254
12.510036
1,905
1,998
-0.169647
North West England
-0.014466
Ridley
Jasper
labour
14.660862
14.652822
1,920
2,004
-0.078551
South West England
-0.130097
Underhill
Michael
tory
12.555969
12.555969
1,918
1,987
-0.143719
Greater London
-0.054886
Roberts
Thomas
labour
11.088129
11.03748
1,915
2,003
-0.001931
Yorkshire and Humberside
-0.035209
Roberts
Gwilym
labour
11.862987
11.862987
1,928
1,987
-0.005034
East of England
0.058464
Roberts
Shelagh
tory
13.694241
13.694241
1,924
1,992
-0.231121
Wales
-0.301682
Roberts
Gordon
labour
12.432009
8.64782
1,921
2,003
-0.056826
East Midlands
-0.139705
Coles
Gerald
tory
11.468802
11.443688
1,933
2,002
-0.088661
North East England
-0.073401
Grant
William
tory
12.135906
12.135906
1,909
1,992
0.067399
Scotland
0.121591
Grant
John
labour
12.718026
12.689694
1,932
2,000
0.290152
Greater London
0.234982
Rees
Robert
labour
12.007443
12.007443
1,911
1,997
-0.027663
Greater London
-0.058777
Cryer
Robert
labour
12.477423
12.477423
1,934
1,994
-0.178921
North West England
-0.098552
Horne
Hampden
labour
11.948827
11.948827
1,903
1,993
-0.134376
East of England
-0.168306
Bidgood
John
tory
12.788762
12.773044
1,914
2,001
0.0326
North West England
0.071531
Fidler
Michael
tory
13.15903
13.15903
1,916
1,989
-0.083164
North West England
0.056821
Faulds
Andrew
labour
12.448091
12.3993
1,923
2,000
-0.050628
South West England
0.102956
Greene
Royden
tory
12.42845
11.830612
1,917
1,999
-0.257032
East Midlands
-0.088294
McWhirter
Norris
tory
15.032617
15.031173
1,925
2,004
-0.065626
South East England
-0.033458
Bourne-Arton
Anthony
tory
12.8456
12.8456
1,913
1,996
0.052728
North East England
0.088195
Baker
Wilfred
tory
12.448091
11.706153
1,920
2,000
0.411135
Scotland
0.211299
Baker
Douglas
labour
11.377708
11.377708
1,931
1,985
-0.006848
East of England
-0.097068
Stone
Frank
labour
11.839684
11.839684
1,905
1,988
-0.145861
East of England
-0.155973
Berkeley
Humphry
tory
12.70204
12.70204
1,926
1,994
0.129244
North West England
0.153394
Lee
Edwin
tory
12.250401
12.250401
1,911
1,989
-0.316821
Greater London
-0.293753
Dilks
John
labour
12.842884
12.837009
1,933
2,005
-0.225507
East Midlands
-0.188054
Read
George
labour
12.489674
12.307351
1,937
2,004
-0.121692
North West England
-0.079581
Cowling
Maurice
tory
12.597955
11.743358
1,926
2,005
-0.162126
East Midlands
-0.160564
Jenkin-Jones
Peter
tory
14.222569
14.222569
1,928
1,995
-0.048689
East Midlands
-0.038213
Irving
Sydney
labour
12.312188
12.312188
1,918
1,989
null
South East England
0.088086
Torney
Thomas
labour
12.443738
10.8343
1,915
1,998
0.171721
Yorkshire and Humberside
0.04325
Hindle
John
labour
12.089245
12.089245
1,920
1,991
-0.197237
North West England
-0.247255
Tinn
James
labour
12.42845
10.819012
1,922
1,999
-0.02794
Yorkshire and Humberside
0.069758
Davis
James
tory
12.549277
11.919503
1,928
2,004
-0.023095
South East England
-0.082748
Grundy
Colin
labour
12.096256
12.096256
1,926
1,994
0.173076
East Midlands
-0.003314
Goodwin
Harry
tory
13.835084
13.835084
1,909
1,998
-0.018823
West Midlands
-0.065892
Reeves
Kenneth
tory
12.402661
12.402661
1,932
2,004
-0.142972
Greater London
-0.116893
Ennals
John
labour
12.736417
12.736417
1,918
1,988
null
West Midlands
-0.053053
Monks
Constance
tory
11.838598
11.838598
1,911
1,989
-0.095082
North West England
0.029819
Normanton
Tom
tory
12.18284
12.18284
1,917
1,997
-0.008649
North West England
0.020451
Clippingdale
Harold
tory
12.120109
12.120109
1,908
1,993
-0.22267
West Midlands
-0.191515
Pearson-Clarke
Anthony
labour
12.14628
12.14628
1,923
1,990
-0.219733
East of England
-0.139504
Hurst
Eric
labour
15.88569
15.877126
1,914
1,998
null
Greater London
-0.021468
Havers
Michael
tory
12.135906
12.135906
1,923
1,992
0.187987
Greater London
0.235448
Williamson
Muriel
tory
12.587288
12.587288
1,904
1,985
-0.103026
West Midlands
-0.031723
Bell
Brian
tory
15.68696
15.68696
1,921
1,989
-0.048082
North West England
-0.04041
Bell
David
tory
12.172626
12.172626
1,926
1,991
-0.189737
West Midlands
-0.018392
Foord
John
labour
11.998508
11.998508
1,909
1,986
-0.059197
Yorkshire and Humberside
-0.011575
Bradley
Thomas
labour
13.257664
13.254361
1,926
2,002
0.038251
East Midlands
0.09877
Lawn
William
labour
11.30337
11.30337
1,907
1,987
null
North West England
-0.08476
Carter-Jones
Lewis
labour
12.581188
10.100077
1,920
2,004
0.04041
North West England
0.146884
Larrow
Dennis
tory
11.344245
11.344245
1,920
1,986
-0.113639
North East England
-0.094972
Leach
Robin
tory
14.892715
14.892715
1,938
1,992
-0.185351
Greater London
-0.220049
Brum
Robert
tory
11.158432
11.158432
1,924
1,985
-0.105292
Greater London
-0.039678
Shearer
William
tory
12.372087
12.372087
1,910
1,997
-0.502401
Scotland
-0.485875
Keigwin
Timothy
tory
12.455547
12.455547
1,921
1,987
-0.030243
South West England
-0.008609
Johnston
Robert
tory
13.031676
13.027946
1,918
2,003
-0.030456
Scotland
-0.058093
Beaumont
Christopher
labour
12.553338
10.809825
1,926
2,005
-0.060688
South West England
-0.165521
Griffith
Huw
tory
12.372087
12.372087
1,930
1,997
-0.009385
West Midlands
-0.062367
Bassett
Philip
labour
12.597955
10.970168
1,931
2,005
-0.187404
South East England
-0.112113
Gurden
Harold
tory
13.37553
13.37553
1,903
1,989
null
West Midlands
0.149906
Moeran
Edward
labour
12.372087
12.372087
1,903
1,997
null
East of England
0.03437
Manley
Roy
labour
12.558403
12.547156
1,930
1,999
-0.076651
East of England
-0.167965
Insley
Noel
labour
12.597955
12.549528
1,922
2,005
-0.003643
East of England
-0.022152
Tucker
Geoffrey
tory
12.932396
12.924257
1,925
2,003
-0.272127
West Midlands
-0.185586
Unsworth
Cyril
tory
12.262951
12.262951
1,925
1,987
-0.299292
North West England
-0.108873
Wegg-Prosser
Charles
labour
11.652732
11.652732
1,910
1,996
null
Greater London
-0.191153
Attlee
Christopher
labour
12.080836
12.080836
1,915
1,987
-0.063538
North West England
-0.129244
Russell
Dorothy
tory
11.782961
11.782961
1,895
1,992
-0.16775
East Midlands
-0.116643
Russell
Conrad
labour
13.001915
12.991219
1,937
2,004
-0.165361
Greater London
-0.06768
Barber
Anthony
tory
11.946048
11.407024
1,920
2,005
-0.018284
Yorkshire and Humberside
0.007738
Edmonds
Richard
labour
11.815145
11.815145
1,910
1,988
-0.098729
Greater London
-0.143551
Benenson
Peter
labour
13.02211
13.007871
1,921
2,005
-0.052754
South West England
-0.018638
King
Horace
labour
12.510087
12.510087
1,901
1,986
null
South East England
0.026502
Derbyshire
William
tory
12.448091
12.448091
1,913
2,000
-0.233774
East Midlands
-0.148558
Hooker
Michael
tory
13.298142
13.250703
1,923
2,004
-0.245824
West Midlands
-0.123763
Waite
Geoffrey
tory
9.76089
9.76089
1,925
1,987
-0.097273
East Midlands
-0.082265
Thompson
Richard
tory
14.037888
14.030214
1,912
1,999
null
Greater London
0.021802
Thompson
Kenneth
tory
11.842941
11.842941
1,909
1,984
null
North West England
0.080306
Thompson
Frank
labour
12.448091
12.448091
1,938
2,000
-0.076305
East of England
-0.058526
Crehan
Thomas
labour
10.611629
10.611629
1,919
1,986
null
West Midlands
-0.079055
Janis
Morris
labour
13.098686
13.077907
1,913
2,001
-0.053814
East of England
-0.091724
Rippon
Geoffrey
tory
14.004919
14.004919
1,924
1,997
0.050887
East of England
0.049438
Cleaver
Leonard
tory
13.080461
13.080461
1,909
1,993
-0.070487
West Midlands
0.030387
Matterson
Alan
labour
12.70424
12.603789
1,929
2,005
-0.114482
South East England
-0.055126
Moody
Aubrey
tory
11.251353
11.251353
1,911
2,004
-0.039844
East of England
-0.015711
Warren
Brian
tory
12.402979
12.402979
1,914
1,996
-0.139269
Greater London
-0.061896
Johnson
Walter
labour
12.51902
11.972855
1,917
2,003
0.257032
East Midlands
0.088294
Johnson
Carol
labour
12.868566
12.868566
1,903
2,000
0.148551
Greater London
0.072639
Leitch
Alexander
tory
12.432009
10.845044
1,926
2,003
-0.242477
Yorkshire and Humberside
-0.164693
Richardson
Josephine
labour
12.096256
12.096256
1,923
1,994
-0.144481
Greater London
-0.058897
Richardson
Francis
tory
12.39495
12.39495
1,914
1,987
null
East Midlands
-0.082849
Richardson
Kenneth
labour
10.858437
10.858437
1,912
1,986
-0.132751
West Midlands
-0.197824
End of preview.
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

CAIS Dataset

This repository contains 56 datasets from real-world studies and research, organized into two main categories:

  • Real-World Studies : Classic datasets from influential studies in political science, labor economics, public health, and public policy
  • QRData : Datasets from Liu et al. (2024) for benchmarking quantitative and causal reasoning with data

Dataset Information

For complete information about each dataset, including:

  • Data sources and download links
  • Original research studies
  • Modifications (if any)

Please refer to data_source_and_license.pdf

Licenses

This collection contains datasets under various licenses including CC BY-NC, CC0, MIT, and GPL 3.0.

Important:

  • Most datasets are restricted to non-commercial use and require attribution to original authors.
  • Users must review the terms of use at the original data sources.

Please review:

  1. LICENSE.md for licensing information
  2. data_source_and_license.pdf for links to original data sources and their terms of use

Citation

If you use these datasets in your research, please cite the original studies as specified in data_source_and_license.pdf.

Usage

Users are responsible for:

  1. Reviewing the license for each dataset they use
  2. Properly citing original authors and sources
  3. Complying with usage restrictions (e.g., non-commercial use)
  4. Verifying data quality and appropriateness for their research

Contributing

If you find any issues with the datasets or documentation, please open an issue or submit a pull request.

Disclaimer

This is a collection of publicly available datasets. The repository maintainer makes no warranties about the accuracy or completeness of the data. Users should verify data quality and refer to original sources for questions about individual datasets.

Downloads last month
60