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 15 new columns ({'currency_crisis', 'inflation', 'crisis_any', 'iso3', 'gdp_growth', 'currency_crisis_next_12m', 'debt_crisis_next_12m', 'fed_funds_rate', 'banking_crisis', 'year', 'crisis_next_12m', 'real_interest_rate_10y', 'debt_crisis', 'banking_crisis_next_12m', 'unemployment'}) and 3 missing columns ({'Description', 'Column', 'Source'}).
This happened while the csv dataset builder was generating data using
hf://datasets/jason1966/adamvakar_how-financial-crises-are-born-warning-indicators/global_crisis_data.csv (at revision 839cf91e2fe448a09631440af3b90bc7b52a388f), [/tmp/hf-datasets-cache/medium/datasets/57777522428277-config-parquet-and-info-jason1966-adamvakar_how-f-cd04b861/hub/datasets--jason1966--adamvakar_how-financial-crises-are-born-warning-indicators/snapshots/839cf91e2fe448a09631440af3b90bc7b52a388f/data_dictionary.csv (origin=hf://datasets/jason1966/adamvakar_how-financial-crises-are-born-warning-indicators@839cf91e2fe448a09631440af3b90bc7b52a388f/data_dictionary.csv), /tmp/hf-datasets-cache/medium/datasets/57777522428277-config-parquet-and-info-jason1966-adamvakar_how-f-cd04b861/hub/datasets--jason1966--adamvakar_how-financial-crises-are-born-warning-indicators/snapshots/839cf91e2fe448a09631440af3b90bc7b52a388f/global_crisis_data.csv (origin=hf://datasets/jason1966/adamvakar_how-financial-crises-are-born-warning-indicators@839cf91e2fe448a09631440af3b90bc7b52a388f/global_crisis_data.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
iso3: string
year: double
crisis_next_12m: double
banking_crisis_next_12m: double
currency_crisis_next_12m: double
debt_crisis_next_12m: double
crisis_any: int64
banking_crisis: int64
currency_crisis: int64
debt_crisis: int64
inflation: double
gdp_growth: double
unemployment: double
fed_funds_rate: double
real_interest_rate_10y: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 2174
to
{'Column': Value('string'), 'Description': Value('string'), 'Source': 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 15 new columns ({'currency_crisis', 'inflation', 'crisis_any', 'iso3', 'gdp_growth', 'currency_crisis_next_12m', 'debt_crisis_next_12m', 'fed_funds_rate', 'banking_crisis', 'year', 'crisis_next_12m', 'real_interest_rate_10y', 'debt_crisis', 'banking_crisis_next_12m', 'unemployment'}) and 3 missing columns ({'Description', 'Column', 'Source'}).
This happened while the csv dataset builder was generating data using
hf://datasets/jason1966/adamvakar_how-financial-crises-are-born-warning-indicators/global_crisis_data.csv (at revision 839cf91e2fe448a09631440af3b90bc7b52a388f), [/tmp/hf-datasets-cache/medium/datasets/57777522428277-config-parquet-and-info-jason1966-adamvakar_how-f-cd04b861/hub/datasets--jason1966--adamvakar_how-financial-crises-are-born-warning-indicators/snapshots/839cf91e2fe448a09631440af3b90bc7b52a388f/data_dictionary.csv (origin=hf://datasets/jason1966/adamvakar_how-financial-crises-are-born-warning-indicators@839cf91e2fe448a09631440af3b90bc7b52a388f/data_dictionary.csv), /tmp/hf-datasets-cache/medium/datasets/57777522428277-config-parquet-and-info-jason1966-adamvakar_how-f-cd04b861/hub/datasets--jason1966--adamvakar_how-financial-crises-are-born-warning-indicators/snapshots/839cf91e2fe448a09631440af3b90bc7b52a388f/global_crisis_data.csv (origin=hf://datasets/jason1966/adamvakar_how-financial-crises-are-born-warning-indicators@839cf91e2fe448a09631440af3b90bc7b52a388f/global_crisis_data.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.
Column string | Description string | Source string |
|---|---|---|
iso3 | ISO-3 Country Code | Standard |
year | Year of observation | Standard |
crisis_next_12m | TARGET: 1 if ANY crisis starts next year | HBS (Calculated) |
banking_crisis_next_12m | Specific Target: 1 if Banking Crisis starts next year | HBS (Calculated) |
currency_crisis_next_12m | Specific Target: 1 if Currency Crisis starts next year | HBS (Calculated) |
debt_crisis_next_12m | Specific Target: 1 if Debt Crisis starts next year | HBS (Calculated) |
crisis_any | Current State: 1 if any crisis is active | HBS |
banking_crisis | Current State: 1 if Banking Crisis is active | HBS |
currency_crisis | Current State: 1 if Currency Crisis is active | HBS |
debt_crisis | Current State: 1 if Debt Crisis is active | HBS |
inflation | Inflation, consumer prices (annual %) | World Bank WDI |
gdp_growth | Real GDP growth (annual %) | World Bank WDI |
unemployment | Unemployment, total (% of labor force) | World Bank WDI |
fed_funds_rate | US Federal Funds Effective Rate (Annual Mean) | FRED (USA) |
real_interest_rate_10y | US 10-Year Real Interest Rate (Annual Mean) | FRED (USA) |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
null | null | null |
End of preview.
How Financial Crises Are Born: Warning Indicators
A Global, ML-Ready Dataset for Early Detection of Financial Crises
Dataset Info
- Source: Kaggle
- Original Size: 0.09 MB
- Kaggle Downloads: 75
- Files: 2
Files
data_dictionary.csvglobal_crisis_data.csv
Mirrored from Kaggle
- Downloads last month
- 20