The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
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 ({'email', 'full_name', 'date_of_birth', 'credit_score', 'city', 'zip', 'risk_tier', 'country', 'income_annual_usd', 'is_fraud_suspect', 'phone', 'customer_since', 'gender', 'national_id', 'address'}) and 10 missing columns ({'status', 'iban', 'opened_date', 'account_number', 'currency', 'is_flagged', 'balance', 'account_type', 'account_id', 'credit_limit'}).
This happened while the csv dataset builder was generating data using
hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset/customers.csv (at revision af54175b22c4944daa29931304f24a34da08363b), ['hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset@af54175b22c4944daa29931304f24a34da08363b/accounts.csv', 'hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset@af54175b22c4944daa29931304f24a34da08363b/customers.csv', 'hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset@af54175b22c4944daa29931304f24a34da08363b/devices.csv', 'hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset@af54175b22c4944daa29931304f24a34da08363b/fraud_alerts.csv', 'hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset@af54175b22c4944daa29931304f24a34da08363b/transactions.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 1837, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/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.12/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
customer_id: string
full_name: string
date_of_birth: string
gender: string
national_id: string
email: string
phone: int64
address: string
city: string
zip: string
country: string
credit_score: int64
income_annual_usd: double
customer_since: string
risk_tier: string
is_fraud_suspect: int64
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 2152
to
{'account_id': Value('string'), 'customer_id': Value('string'), 'account_type': Value('string'), 'account_number': Value('int64'), 'iban': Value('string'), 'currency': Value('string'), 'opened_date': Value('string'), 'balance': Value('float64'), 'credit_limit': Value('float64'), 'status': Value('string'), 'is_flagged': Value('int64')}
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 1361, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 940, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1683, 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 1839, 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 ({'email', 'full_name', 'date_of_birth', 'credit_score', 'city', 'zip', 'risk_tier', 'country', 'income_annual_usd', 'is_fraud_suspect', 'phone', 'customer_since', 'gender', 'national_id', 'address'}) and 10 missing columns ({'status', 'iban', 'opened_date', 'account_number', 'currency', 'is_flagged', 'balance', 'account_type', 'account_id', 'credit_limit'}).
This happened while the csv dataset builder was generating data using
hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset/customers.csv (at revision af54175b22c4944daa29931304f24a34da08363b), ['hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset@af54175b22c4944daa29931304f24a34da08363b/accounts.csv', 'hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset@af54175b22c4944daa29931304f24a34da08363b/customers.csv', 'hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset@af54175b22c4944daa29931304f24a34da08363b/devices.csv', 'hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset@af54175b22c4944daa29931304f24a34da08363b/fraud_alerts.csv', 'hf://datasets/Abdulmajeedyahya/BankShield-Enterprise-Grade-Multi-Pattern-Dataset@af54175b22c4944daa29931304f24a34da08363b/transactions.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.
account_id string | customer_id string | account_type string | account_number int64 | iban string | currency string | opened_date string | balance float64 | credit_limit float64 | status string | is_flagged int64 |
|---|---|---|---|---|---|---|---|---|---|---|
f788d577-7140-4055-af8a-1ecf5207795f | 0145f4f2-4eb2-4497-8b7e-4ec7b9814243 | BUSINESS | 7,505,448,948 | GB79KLJG04058434677887 | GBP | 2023-05-29 | 303,425.36 | null | ACTIVE | 0 |
d8d37503-5c92-4f1d-bd88-4e444dfb00a5 | ec05b9d9-264d-4cd5-9251-2cd3865055d9 | CHECKING | 8,739,144,694 | DE27830827864945594352 | EUR | 2022-02-24 | 4,550.76 | null | ACTIVE | 0 |
dbdb1c9b-18ec-4fac-b6d7-011a649d3d4c | 1548a91e-b1d7-47ff-ad06-1263a66aa7c7 | CHECKING | 3,674,004,167 | GB53PSJP67626015165032 | GBP | 2023-05-31 | 0 | null | ACTIVE | 0 |
9aa6842e-6e63-460b-82fb-f5c35766c1ef | c49b5a69-54c4-412b-b318-d7ebf1faacca | CREDIT | 6,800,943,221 | US2520130194943786482695 | USD | 2021-03-07 | -3,670.37 | 59,392 | ACTIVE | 0 |
108ef11a-c0cd-41cf-8c3a-00def69d278e | 241a4a9a-31af-4c45-ae1e-325733acb26e | SAVINGS | 9,469,949,985 | GB97VQYW13334080705625 | GBP | 2019-08-28 | 52,914.81 | null | ACTIVE | 0 |
62f0ffbb-2dc1-4fa7-bc30-a899331ef144 | f881ef1b-2a4d-48f9-b0b1-1cf85dd893e2 | CREDIT | 2,215,117,145 | US4631246809684845883878 | USD | 2022-12-29 | -3,376.77 | 20,757 | ACTIVE | 0 |
16a71706-7943-47c8-b6c1-f2c6bf57dc63 | 0b524e20-f452-4c91-bf98-428256da7e95 | CHECKING | 3,264,668,277 | US8044937153967465507830 | USD | 2023-12-06 | 1,789.96 | null | ACTIVE | 0 |
75e0dca4-a9ed-4e28-a7f2-cbaa0a4e2a44 | f5ed5241-4f34-4e20-a8c3-2d2cb4580aa0 | CHECKING | 5,728,431,799 | DE41650179770762867443 | EUR | 2017-07-29 | 5,755.66 | null | ACTIVE | 0 |
4762a187-0997-43f4-970b-695d37b06e0a | 91abc981-e97b-4d6c-a4d2-735b4a675b4a | BUSINESS | 5,970,406,563 | US6858014456690029300185 | USD | 2019-01-01 | 29,526.05 | null | ACTIVE | 0 |
67a60bbf-5821-4123-91dd-5c3de5c6cf19 | 1fb6e76e-cb59-4639-8916-070ca1680e04 | CHECKING | 7,376,730,083 | AE434777309748089655860 | AED | 2012-10-03 | 0 | null | CLOSED | 0 |
fb811683-5ec0-4ab5-966f-d9aca9454f85 | 90bae278-bc05-460c-aa77-3b788e8c030e | CHECKING | 2,472,774,488 | DE23702798645272349583 | EUR | 2024-04-17 | 5,177.53 | null | ACTIVE | 0 |
453139a6-5b81-459f-825e-b70ef1352f74 | 7a5180b8-b540-42e4-bef1-5f4d0aca8bb1 | SAVINGS | 3,170,416,616 | US7072893844189914597395 | USD | 2022-10-07 | 0 | null | SUSPENDED | 0 |
27391d12-0eaf-456c-9fd1-ff8ef9b7f2b0 | 3ef0ff8a-7e27-4d7b-9e36-77be6e43e9ae | SAVINGS | 2,562,523,920 | AE320077311509197530217 | AED | 2023-07-22 | 0 | null | ACTIVE | 0 |
249cc9b4-8e8b-4c9e-b03f-1cb84f30f404 | fcfc8cc2-3a41-455d-8981-303c16071028 | CHECKING | 7,350,104,986 | GB92ZSGG82844942400262 | GBP | 2022-10-16 | 0 | null | ACTIVE | 1 |
f9e913a9-ab32-47bd-9ef9-e5ae57718cae | a20532e4-1ed9-4300-a5c1-cacbc14530d5 | CHECKING | 9,225,284,647 | US1948852212069522259233 | USD | 2010-11-02 | 5,699.18 | null | ACTIVE | 0 |
73439f77-3e27-43be-bea1-9b96d409c173 | a90110e2-e55c-4696-a473-2b70921651ce | SAVINGS | 8,083,930,185 | US2699470393909852488103 | USD | 2022-09-05 | 35,574.74 | null | ACTIVE | 0 |
8e4a187a-e3ce-4af1-a911-b142e53cef1c | 85d85ce0-8baa-47fd-9db6-8a3e29ecc10e | SAVINGS | 5,469,745,943 | IT5456135385315252498215063 | EUR | 2023-12-18 | 0 | null | SUSPENDED | 0 |
8fa2ddd9-aa65-4229-8b9d-6d95188d8875 | 1cf930ba-430c-4567-bef3-4b1437aaaa07 | CREDIT | 1,747,326,466 | AE516913229533330524729 | AED | 2024-03-12 | 32.82 | 10,383 | ACTIVE | 0 |
d614de23-4cd2-47d6-805b-540d904e9b0b | 487d6535-78ba-41d0-b469-476f30824117 | CHECKING | 8,347,985,004 | DE17012119173114699069 | EUR | 2021-03-15 | 9,075.77 | null | SUSPENDED | 0 |
7a7996f1-1339-48fa-9218-4594d8e2baed | 68f7b76a-fdd2-4463-9ac0-94f2fe15d39f | CREDIT | 7,573,762,607 | GB60MTGX78360732960497 | GBP | 2023-05-19 | -1,796.48 | 29,019 | ACTIVE | 0 |
74ddd45d-156a-4cb4-b576-97027e081435 | 20d369db-e7e4-455c-be93-4c5128de4b86 | BUSINESS | 1,104,026,976 | IT1180661405830438496366421 | EUR | 2018-06-21 | 86,439.45 | null | ACTIVE | 0 |
bc1dfc47-0319-4a03-9c3e-933f1171eb2a | 25a891a0-439e-4d0b-b785-89fc9148e137 | SAVINGS | 305,401,316 | DE58996732892743622907 | EUR | 2017-02-05 | 0 | null | ACTIVE | 0 |
ccd41a2c-c98a-4129-b637-779883bca38e | 4f9513d8-2572-45c0-b1b2-e9cda58e6aa7 | CHECKING | 6,439,929,500 | GB91WYUQ54900134512992 | GBP | 2022-06-26 | 4,940.72 | null | ACTIVE | 0 |
f5f39f6f-12ec-491d-9e9f-4569683ed98d | 3431ba28-b536-4d3e-bd87-624d4b451480 | BUSINESS | 2,066,588,793 | DE90222470615588330340 | EUR | 2021-01-24 | 48,517.13 | null | ACTIVE | 0 |
4cfb4717-50a6-490d-92d1-424c216a3784 | 5bff4037-a4f7-442b-9d64-f3f628053465 | SAVINGS | 5,619,767,080 | US2007795462643386835564 | USD | 2022-09-24 | 20,222.14 | null | ACTIVE | 0 |
6a91b184-93ee-471f-9002-fe5ec649bbae | ee9781e1-a9a5-4e71-b42b-bfb3ba119a6f | CHECKING | 6,827,932,222 | DE50749789083861634198 | EUR | 2015-05-09 | 3,647.31 | null | ACTIVE | 0 |
387841dd-3be8-4040-946f-c9d4f3a1ad93 | 9484e196-1cbd-4bc2-b252-aae916d76c44 | CREDIT | 956,728,512 | GB89FQGE31904460824977 | GBP | 2015-03-25 | -302.04 | 14,488 | ACTIVE | 0 |
6bef84c9-bc1e-4583-ac02-35666332fb3c | dcde3a8c-f85d-4fe6-8edd-b975036d3b99 | CREDIT | 1,634,832,106 | AE446649484597398214064 | AED | 2022-08-27 | 2,260.86 | 48,167 | ACTIVE | 0 |
3ce6e5c0-74f5-4633-a3d9-d42337f4ca5b | b1a5e220-3e25-416c-af0b-71c4422e85f4 | CREDIT | 9,874,076,876 | DE64830102376301053170 | EUR | 2021-11-06 | 768.65 | 13,213 | CLOSED | 0 |
57e38c91-75fe-438c-93ca-441bc8a6447b | 30695b1c-d03c-42e7-924e-5f55e9878732 | CHECKING | 2,211,513,618 | NL9590979290988739 | EUR | 2020-04-03 | 0 | null | CLOSED | 0 |
7f33df83-9615-4e8c-a7b3-e6da682fe219 | b2fceee7-22ed-4b66-ba8d-361e558503a3 | CREDIT | 1,220,421,862 | AE827509895679453033669 | AED | 2016-11-03 | 356.88 | 7,759 | ACTIVE | 0 |
2a54ce6a-a8eb-484d-b99f-d54cd2c4a815 | fbeac6c5-5b5f-4a45-9002-1d89bc743ac2 | CREDIT | 8,386,803,111 | US7675522160230120027733 | USD | 2018-01-30 | 106.8 | 4,591 | ACTIVE | 0 |
bca7033a-e066-4410-a86e-0b49ad8edf74 | b6e24c97-7d25-4b8e-be61-947f21af76dc | CHECKING | 8,497,934,515 | GB94AQLO28459537388665 | GBP | 2020-10-23 | 4,848.4 | null | ACTIVE | 0 |
fc2d8183-d97e-4cab-a1c4-dc1a4eb9fcb2 | c18b96f9-9629-412f-99c8-80d3e312f823 | CHECKING | 975,214,494 | AE277415326494181919724 | AED | 2016-07-26 | 5,492.13 | null | ACTIVE | 0 |
acf18b6a-8553-4217-ab91-a1e82aa6801f | 97e287b5-8cf5-42f6-8af1-ff278172b8a5 | SAVINGS | 2,489,754,987 | US1057264724923366846887 | USD | 2021-10-20 | 15,361.91 | null | ACTIVE | 0 |
5fb82500-dbf9-4e0e-aeb9-5a355cac2a66 | c63934a0-498d-40bc-83ef-9ca2fe5ab266 | SAVINGS | 4,711,389,297 | DE82040031091569790471 | EUR | 2021-08-06 | 86,755.09 | null | SUSPENDED | 1 |
f961c5ea-b614-42d7-9cb2-02fc664c2ed9 | 28063386-bc09-4fe9-ade8-7d0efbe11344 | CREDIT | 7,422,481,579 | US3789814269487059136215 | USD | 2021-08-11 | -5,071.64 | 55,061 | ACTIVE | 0 |
57d8f025-29d2-4dcc-88a8-a71023b4f365 | 5ae8460e-58bb-4d35-879b-091887b51a6c | SAVINGS | 811,324,921 | ES2552928241528367370459 | EUR | 2019-07-06 | 0 | null | ACTIVE | 0 |
bb0a3fe4-960e-49d3-9d29-7cafcef60a6a | beabc4f0-f346-44c6-9014-bef8acdfdd2a | SAVINGS | 7,534,941,215 | DE54473857308347689699 | EUR | 2022-06-20 | 17,843.64 | null | ACTIVE | 0 |
89509232-88db-4f79-8d50-447f99fb317b | d508346c-3e1b-444b-94a9-66b9e46f16c1 | SAVINGS | 6,480,792,757 | US8959773317938926772395 | USD | 2020-07-25 | 29,546.46 | null | ACTIVE | 0 |
b11821e4-ea9d-4c08-bd84-f923040a0381 | 88aa97a8-e54c-4c63-916a-c288faea899d | SAVINGS | 9,029,154,989 | AE390144760691385707482 | AED | 2023-07-29 | 64,591.62 | null | CLOSED | 0 |
3e74cddb-1a6b-4345-b571-5bfd9710fbc0 | fed934c2-e5b2-4295-b392-77078aeea7b6 | CREDIT | 6,856,307,745 | AE496582927946697614128 | AED | 2023-02-22 | -310.59 | 11,565 | ACTIVE | 0 |
f752f5fd-f5a8-412a-acf8-40fad7b82e93 | 8a2d37e8-18bb-4379-88bb-155d613af2b9 | SAVINGS | 2,799,761,304 | US6256035685472115180522 | USD | 2022-11-06 | 0 | null | ACTIVE | 0 |
65f2745f-6a6b-41f0-8d1c-396fac5fda10 | 7c03d23e-8752-41e8-be5c-9900dcfc343a | CHECKING | 9,320,188,284 | US1801942914555227191657 | USD | 2024-06-03 | 0 | null | ACTIVE | 0 |
22d775dd-749c-4be3-92d3-2a08dd87c22f | 6f260606-1dcf-46aa-8870-160341efe57b | CHECKING | 9,632,220,528 | AE530515910197672934376 | AED | 2024-05-05 | 4,199.06 | null | ACTIVE | 0 |
bfa5c467-f6d2-41b2-b9ca-bf3627fc7f99 | 74bd4169-e5a1-484a-b22d-8a87314b78a3 | CHECKING | 636,235,034 | GB17IFPM22041057488630 | GBP | 2024-01-07 | 6,556.99 | null | ACTIVE | 0 |
18332d71-777b-481b-b7ae-77a424015ab8 | 50fb7cef-7d60-40b8-8027-8fd0e0652e13 | CHECKING | 2,999,092,353 | GB65RMBD17741844327632 | GBP | 2021-06-16 | 0 | null | ACTIVE | 0 |
520c4055-19d8-4910-8ba8-25789d079aec | 9974048d-0f68-4119-909a-f6d43ca487e2 | CHECKING | 2,390,012,899 | DE22436981758816806067 | EUR | 2023-10-27 | 751.48 | null | ACTIVE | 0 |
0214c49f-ffd5-4d79-bb95-185a8e1296e7 | cfc60e3e-8310-44dd-ab05-b32c3eeb5a4c | CHECKING | 7,622,211,967 | AE215090152258319937720 | AED | 2021-09-03 | 6,158.87 | null | ACTIVE | 0 |
edde6496-e6fa-4a34-bb59-6171ae0803db | ce3659b6-bf05-4c4f-afd2-d5ea732f6666 | CHECKING | 309,955,417 | US6380376233259236299633 | USD | 2024-01-12 | 3,828.33 | null | ACTIVE | 0 |
c9d5b3ff-6559-49d8-8d2a-fbd2b153a018 | 9408bda0-3676-4af0-8e22-5d59324f7b8b | CHECKING | 7,700,177,452 | FR5263042350778824292305010 | EUR | 2021-07-18 | 54.98 | null | ACTIVE | 0 |
1c076635-d31c-4b7d-85e9-e85672a29288 | f6a02d2a-66c7-4d7a-a13c-38b1dcad8c0f | SAVINGS | 2,518,797,425 | IT6113088215519415467300334 | EUR | 2023-03-09 | 13,485.85 | null | ACTIVE | 0 |
318990e7-e676-4987-acaa-78415bb109bf | 0ed58f58-8bb3-439a-ae8e-59f65b9d8b51 | CHECKING | 7,981,763,679 | GB50MIQI13445847491425 | GBP | 2011-08-26 | 0 | null | ACTIVE | 0 |
46f04ad3-4588-45ce-b919-f11e29b544f9 | 25fff521-615e-46c8-8cdd-e6c4719ac559 | SAVINGS | 5,393,096,631 | US1686186609255437795986 | USD | 2014-07-04 | 0 | null | ACTIVE | 0 |
8d6b86e4-6f42-47d8-8d9c-1769694d909c | 7da0e80f-7ff7-47d5-8af1-589e14735a29 | SAVINGS | 832,481,365 | NL5483120546038975 | EUR | 2021-02-23 | 26,935.63 | null | ACTIVE | 0 |
2e0d4b42-5584-4af0-8057-31c0586ca6e1 | c5f39a43-20de-4606-8f9e-6ddbd75d16f1 | SAVINGS | 7,089,012,046 | US4115537408286476963652 | USD | 2019-11-27 | 0 | null | ACTIVE | 0 |
084e01a2-e203-406e-9361-59bf0f3ee80f | 1d823f5b-1351-4171-b9c9-bb3fd5a81253 | CHECKING | 112,969,463 | SE3912867115238031076025 | SEK | 2013-11-25 | 0 | null | ACTIVE | 0 |
36362533-8444-4cc8-b6a1-817392310679 | 831c0be3-e497-4cb4-823b-1d28dd39bc9c | CHECKING | 3,977,602,664 | US5694410579502355931600 | USD | 2021-07-09 | 0 | null | ACTIVE | 0 |
28bbf51f-4831-421b-a6b2-f8447d7f5751 | b1460536-1a9a-423d-b042-b2ccaa03dfa9 | SAVINGS | 8,053,053,513 | FR3806861035021186217726865 | EUR | 2017-07-15 | 13,789.36 | null | ACTIVE | 0 |
aa4c5574-cf57-48b9-81c0-3a58e7b0a336 | bd93f98f-4af1-4686-9c44-0bb6228da603 | SAVINGS | 4,615,082,684 | GB32JIWM10937725562275 | GBP | 2023-07-22 | 40,531.07 | null | ACTIVE | 0 |
ddfb6063-d38c-48b1-ab02-167d903116dc | 9327a67d-263d-497f-97e7-fa4c8fcb90c5 | CHECKING | 3,166,740,707 | DE19790546648930062329 | EUR | 2021-05-07 | 7,541.13 | null | ACTIVE | 0 |
1bdace7a-a3ed-42e7-aa4f-2a436aabdc74 | dd2a7032-e88b-4cc5-b0e9-b31804a2284c | SAVINGS | 1,108,126,615 | US4406959561011034054844 | USD | 2018-07-29 | 19,055.32 | null | ACTIVE | 0 |
f39b70ed-7d5a-45ee-80a3-3f3e9d891c68 | 392c885d-c0e0-4662-8934-e365cd060b09 | SAVINGS | 7,541,657,189 | US7735613611609874352016 | USD | 2015-08-18 | 13,844.01 | null | ACTIVE | 0 |
0ac033af-02b6-4075-9f7c-3715119e9285 | 636364be-5dc3-4f04-9ab3-bf9049cfa59c | CREDIT | 6,317,497,852 | US8433975159988545208988 | USD | 2017-07-16 | 1,192.93 | 34,042 | ACTIVE | 0 |
37c92e30-cc86-4c9a-a0ea-db4e46d67692 | 53c5eb75-fcd1-45d7-87c7-bc6fa4326989 | CHECKING | 3,006,135,146 | DE85316815517682174725 | EUR | 2023-02-06 | 6,496.61 | null | ACTIVE | 0 |
e01adb83-d5b4-4ee9-827a-13eb649d4942 | b31c96d5-b54c-48be-afb5-132c722efc76 | CREDIT | 2,225,732,208 | DE48560349269215398390 | EUR | 2024-05-27 | 1,201.76 | 71,249 | ACTIVE | 0 |
f11493ca-0f05-4216-baba-baea3355ed9e | 816f300f-1c12-4a6d-9045-1062368447b4 | CHECKING | 1,751,576,640 | AE308071324231824400807 | AED | 2021-12-27 | 1,964.05 | null | ACTIVE | 0 |
9803a223-ac83-4325-8591-8665210b1f5e | ebadeb86-9930-490d-ac32-f34db6506728 | CHECKING | 2,584,114,879 | AE210908726036837985417 | AED | 2023-06-05 | 6,992.7 | null | ACTIVE | 0 |
19a8bc84-073b-4bbb-899b-38f77a2027ee | d4332615-5b73-4bc7-a7f1-578aa81f0606 | CHECKING | 8,988,861,021 | NL2146406932687234 | EUR | 2021-08-03 | 4,939.04 | null | ACTIVE | 0 |
77c9e1f4-2dd6-414a-ad73-c68a9bc36821 | ac1f15a7-26e3-4176-9a53-0e8d787c49ca | CHECKING | 2,247,103,372 | GB29XFFW81961379269607 | GBP | 2019-07-12 | 1,957.34 | null | ACTIVE | 0 |
c2084b81-0f71-47f1-bcb0-0b8b86e374d4 | 48449ea0-d044-41e2-8321-50de88f3b762 | SAVINGS | 5,659,008,731 | US4174908855323014156243 | USD | 2019-03-26 | 7,518.67 | null | CLOSED | 0 |
35dae3f2-9dc9-4226-bcab-eef41c2adf9a | 7f2f9829-1c20-4c38-85ac-ede456d1d1eb | CHECKING | 6,545,175,747 | US2398940081298358949458 | USD | 2015-01-15 | 0 | null | ACTIVE | 0 |
947c3eec-34bb-4497-b397-7e6121564de8 | 74b2177e-89f3-4e73-9080-5c73295ee051 | CREDIT | 4,640,153,914 | US6553607960890194117551 | USD | 2013-08-06 | -3,531.25 | 38,720 | ACTIVE | 0 |
c95d10b1-3a41-49fe-a34b-037e04a29cd2 | b53486ea-6ab0-44d6-85a4-14d9aec7de62 | CREDIT | 4,691,242,708 | US1604995005411499281958 | USD | 2022-03-02 | -877.23 | 58,631 | ACTIVE | 0 |
ff5f7ec0-0f03-443e-9371-a8275f9b15c2 | 119b3fe7-6f7c-4195-a3ee-bf74e75425ea | CHECKING | 9,703,329,100 | US5529028596756963292822 | USD | 2019-08-15 | 4,511.32 | null | ACTIVE | 0 |
84b2b93a-744d-4a2b-86f2-aa609cf80c41 | dfc5c430-adf7-4fb2-8d57-3d1f0483464c | CHECKING | 2,771,776,893 | DE48146817514760326595 | EUR | 2021-10-11 | 3,077.45 | null | ACTIVE | 0 |
7f43067e-be03-4232-bcad-63d60b4ac432 | 7127d6fe-0eca-4c05-99f7-e43d1618722c | CHECKING | 4,988,387,015 | US5070045711512703027428 | USD | 2023-07-14 | 0 | null | ACTIVE | 0 |
b9fc4f13-44e6-4890-974a-e98440e6b808 | 55783bca-4fec-4543-a503-a2279cb7be4c | CREDIT | 7,997,757,163 | NL3247357280116980 | EUR | 2022-04-03 | 480.88 | 11,096 | ACTIVE | 0 |
9458712f-1b56-4914-b2f6-3165d882c64c | 55f5dadd-0124-4a2d-a90f-36b3acfdeb86 | CREDIT | 3,938,709,154 | GB67NHGF63320371927069 | GBP | 2023-09-23 | -4,017.9 | 30,888 | SUSPENDED | 0 |
ad1236b7-d889-4802-b8e8-7a68df933751 | 8f204147-0e7d-4c41-ab5c-f0a41f04ea56 | CREDIT | 4,302,923,251 | NL3124911795627216 | EUR | 2019-12-13 | -2,753.27 | 48,024 | ACTIVE | 0 |
2587a945-a272-4f25-a26f-6e96af8ac600 | 62748689-f7f4-4f05-bc4a-cc59ed19d59f | BUSINESS | 5,983,857,471 | IT3137365531096487009180186 | EUR | 2018-04-25 | 19,241.5 | null | ACTIVE | 0 |
5b5ad963-e4f9-4acd-bd1f-494783d81b86 | dfdbada4-fc3a-44b7-ab7e-2c997c323fdf | CHECKING | 7,599,952,774 | GB44ZZOR71929733758115 | GBP | 2024-02-26 | 0 | null | ACTIVE | 0 |
a52786b1-e3e6-4ad4-b531-019a349320d5 | 7835b750-9fab-460f-b1c7-bfebf6c02fa0 | SAVINGS | 8,684,119,034 | GB59ZZSO56061690252241 | GBP | 2024-03-21 | 30,870.8 | null | ACTIVE | 0 |
da332fd5-8ccc-4ab9-aab2-b5c27ad4d28b | 72e875ba-b364-429e-99ed-6a74fb4be27a | CHECKING | 9,800,588,413 | US1906787556352449945242 | USD | 2023-10-21 | 0 | null | ACTIVE | 0 |
452a89cc-cec2-408c-8f3f-73450aa6a94e | 8b93ce2a-f733-423d-90b1-bd940a0610d1 | SAVINGS | 472,604,964 | US7165659437412123613962 | USD | 2017-11-20 | 0 | null | ACTIVE | 0 |
46da7482-ed0f-4dc9-8eb7-c4ecd4270e57 | dce27a1c-762f-4c9f-a0d5-aa15cb154e2e | CHECKING | 4,764,230,892 | US5864477380423153123571 | USD | 2018-02-05 | 5,373.33 | null | ACTIVE | 0 |
4ac39904-0d88-4b2a-ba59-0ddd798987a2 | 17cebf65-aa75-41d2-90ed-8291b6deba32 | CREDIT | 4,583,666,590 | IT8467737331767509796881224 | EUR | 2024-04-23 | 1,384.49 | 35,137 | SUSPENDED | 0 |
84f724e7-7b33-4a28-8dc5-d6fa74af3b6b | 7bf4e0af-83df-4b0b-bfe7-109c6172075d | CREDIT | 5,445,995,407 | US3406437808134755659647 | USD | 2022-02-27 | -2,638.7 | 7,947 | ACTIVE | 0 |
678a1153-cacf-4cab-af9b-67e18e792735 | a1fdb1c5-1670-4530-b80a-b64a566995c1 | SAVINGS | 610,477,445 | AE289879463423021270400 | AED | 2019-12-17 | 31,200.97 | null | ACTIVE | 0 |
a1a5cff0-dac6-47bb-9e93-894e7d4400f9 | 42938627-b4a3-4442-aea9-c1d39d2f88ba | CREDIT | 3,640,207,771 | US2029435860463421553629 | USD | 2023-09-12 | -1,802.57 | 37,788 | ACTIVE | 0 |
790b0b32-3e9b-470e-a15f-70a67624856c | 94def3eb-c96e-41f7-89aa-1901c8371bd4 | CHECKING | 6,363,316,752 | US5561477217415848129854 | USD | 2024-03-24 | 5,094.07 | null | CLOSED | 0 |
6c9a511e-f5f6-4f13-919b-66a12e23f733 | daf369c7-2583-4adb-a948-1c3a0a699494 | CREDIT | 4,803,736,996 | AE585299423272929982527 | AED | 2020-04-22 | -1,686.13 | 42,083 | ACTIVE | 0 |
b24df4f4-426d-48c7-990e-f8778bf03011 | 9551a0f8-b8fc-4e2b-9d7b-d463b1be9093 | CREDIT | 3,399,525,275 | US6759664760302819391490 | USD | 2021-04-24 | -517 | 517 | ACTIVE | 0 |
ef31edd8-e782-43bb-9645-3b259d8850a4 | 95eca062-ab87-4184-a8b5-3022f7f032eb | SAVINGS | 194,212,334 | US7423685041513334737037 | USD | 2017-06-29 | 42,849.88 | null | ACTIVE | 0 |
0aebb4af-0513-4d98-bf2f-5664e08ea5c3 | af83cfd1-2c97-489f-951a-9083d861891a | SAVINGS | 8,564,485,913 | AE753729224786793421913 | AED | 2024-03-15 | 0 | null | ACTIVE | 0 |
2e9bd445-d9cb-4eab-8157-46b758ede267 | 2fb8b3b4-7b2a-46b8-b14c-1819e5c2ad37 | CHECKING | 6,635,399,334 | US3498449678811421472295 | USD | 2019-09-29 | 0 | null | ACTIVE | 0 |
e5aa5baa-0d7c-41b0-9789-2dd8c973da90 | 61c2dc47-8453-4abf-932a-b15d15f8e310 | CHECKING | 7,580,899,887 | GB77ZTZH71555070993302 | GBP | 2021-12-01 | 19,711.14 | null | ACTIVE | 0 |
c2d89381-1cf0-4230-a0dd-95ad675fe73c | 9b8b9054-57bd-4eb7-8c01-693efe5fdaf2 | CHECKING | 2,147,091,942 | US2048117640806720550551 | USD | 2021-03-20 | 884.17 | null | ACTIVE | 0 |
cc6a5c31-7e14-496a-8a8a-43797742d11f | 936d44a8-b09f-450a-8722-2accf2d3af45 | SAVINGS | 3,654,109,774 | DE34761219565987357856 | EUR | 2024-06-04 | 0 | null | ACTIVE | 0 |
540074cb-aca1-476b-ac1c-adb77bdb5a4c | 8da6de73-b1c6-443c-bae0-e2e064dadeb6 | CREDIT | 4,674,776,390 | NL5111985364353507 | EUR | 2014-07-11 | -568.76 | 12,842 | ACTIVE | 0 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
🏦 BankShield-2M: Synthetic Banking & Fraud Detection Dataset
2,000,000 records · 5 relational tables · 64 features · Multi-country · Analyst-labeled
Why This Dataset Exists
Every serious fraud-detection, credit-risk, or behavioral-analytics model eventually hits the same wall: real banking data is locked behind NDAs, GDPR constraints, and institutional gatekeepers. Public alternatives are either too small, too narrow, or stripped of the relational structure that makes real-world models actually work.
BankShield-2M was engineered to close that gap — a fully synthetic, privacy-safe dataset that mirrors the statistical properties, relational schema, and domain complexity of a real retail bank operating at scale.
Dataset at a Glance
| Table | Full Dataset | Sample | Key Features |
|---|---|---|---|
transactions |
2,000,000 | 5,000 | 12 cols, fraud labels, geo, device, merchant |
customers |
50,000 | 2,500 | 16 cols, PII-safe, credit score, income, risk tier |
accounts |
75,000 | 3,750 | 11 cols, IBAN, multi-currency, balance, credit limit |
fraud_alerts |
22,000 | 1,100 | 9 cols, risk score, analyst notes, alert lifecycle |
devices |
35,000 | 1,750 | 10 cols, fingerprint, OS, browser, trust status |
| Total | 2,182,000 | 14,100 | 58 features |
Schema & Relational Structure
customers (customer_id PK)
│
├──< accounts (account_id PK, customer_id FK)
│ │
│ └──< transactions (transaction_id PK, account_id FK)
│ │
│ └──< fraud_alerts (alert_id PK, transaction_id FK)
│
└──< devices (device_id PK, customer_id FK)
Full referential integrity across all five tables. Every account_id in transactions traces back to a customer_id; every transaction_id in alerts traces back to a flagged transaction. This is the graph structure that production fraud systems actually operate on.
Feature Deep-Dive
transactions.csv — The Core Signal Table
transaction_id │ UUID, unique per event
account_id │ FK → accounts
transaction_date │ ISO 8601 with milliseconds (2021–2024)
merchant_name │ 50+ real-world merchants (Walmart, Apple, Texaco…)
merchant_category │ 11 categories: ONLINE_RETAIL, GROCERY, RESTAURANT,
│ GAS_STATION, TRAVEL, ENTERTAINMENT, ATM_WITHDRAWAL,
│ HEALTHCARE, UTILITY, WIRE_TRANSFER, OTHER
amount_usd │ $0.67 – $49,622.28 (median $58, p95 $640)
transaction_type │ DEBIT / CREDIT / TRANSFER / REVERSAL
location_city │ Real city names across 10+ countries
location_country │ US(35%), GB(18%), DE(15%), AE(10%), ES/FR/NL/IT…
device_type │ MOBILE_APP(41%), POS_TERMINAL(30%), WEB_BROWSER(21%),
│ ATM(7%), PHONE(1%)
ip_address │ Unique IPv4 per transaction
is_fraud │ Binary label — 0.84% positive rate (realistic imbalance)
Why it matters: The class imbalance of 0.84% is not arbitrary — it mirrors the empirical 0.5–1.5% fraud rate documented across major card networks. Models trained on artificially balanced datasets fail in production; this one won't.
fraud_alerts.csv — The Intelligence Layer
alert_id │ UUID
transaction_id │ FK → transactions
alert_timestamp │ When the alert was generated
alert_type │ GEO_ANOMALY(30%), ML_MODEL_FLAG(19%),
│ AMOUNT_ANOMALY(18%), VELOCITY_CHECK(15%),
│ BEHAVIORAL_ANOMALY(11%), DEVICE_FINGERPRINT(8%)
risk_score │ Continuous [0.102 – 0.989], mean=0.722
alert_status │ CONFIRMED_FRAUD(42%), RESOLVED(21%),
│ INVESTIGATING(14%), FALSE_POSITIVE(12%), NEW(10%)
analyst_notes │ Free-text investigation notes (NLP-ready)
resolution_timestamp │ SLA-trackable, NULL for unresolved cases
confirmed_fraud │ Final binary label — 77.4% confirmation rate
Why it matters: Six alert types encode the real taxonomy of financial fraud detection — geographic impossibility, behavioral deviation, device compromise, velocity abuse, and ML-model flagging. The analyst notes column is a rare NLP training signal for financial domain adaptation.
customers.csv — The Identity Graph
customer_id │ UUID
full_name │ Internationalized (UK, US, DE, AE, FR, NL names)
date_of_birth │ Full age distribution
gender │ M / F / Non-binary
national_id │ Format-correct per country (SSN, NIN, UAE ID…)
email │ Realistic domain distribution
phone │ E.164 international format
address/city/zip │ Country-coherent (UK postcodes, US ZIPs, DE PLZs)
country │ US(39%), GB(20%), DE(15%), AE(11%), CH/IT/NL/FR…
credit_score │ FICO-range [300–850], mean=679, std=90
income_annual_usd │ [$12K – $689K], realistic skew
customer_since │ 2010–2023 — enables customer lifetime features
risk_tier │ HIGH(36%), LOW(26%), MEDIUM(23%), VERY_HIGH(14%)
is_fraud_suspect │ 2.68% flagged — enables customer-level fraud scoring
accounts.csv — The Financial Ledger
account_id │ UUID
customer_id │ FK → customers (up to 3 accounts per customer)
account_type │ CHECKING(44%), SAVINGS(30%), CREDIT(20%), BUSINESS(5%)
account_number │ 10-digit synthetic number
iban │ Format-valid IBANs for GB, DE, US, AE
currency │ USD(40%), EUR(24%), GBP(21%), AED(10%), CHF(3%)
opened_date │ Account age signal
balance │ [-$63K – $1.44M] (negative balances included)
credit_limit │ Present only for CREDIT accounts [$517 – $74K]
status │ ACTIVE(88%), SUSPENDED(7%), CLOSED(5%)
is_flagged │ 2.9% — account-level risk signal
devices.csv — The Trust & Telemetry Layer
device_id │ UUID
customer_id │ FK → customers
device_fingerprint │ MD5-format hash — unique per device
device_type │ MOBILE(55%), DESKTOP(35%), TABLET(10%)
os │ iOS(36%), Android(29%), Windows(20%), macOS(11%), Linux(4%)
browser │ App(38%), Chrome(32%), Safari(18%), Firefox(6%), Edge(6%)
first_seen │ Device registration date
last_seen │ Last activity date — enables recency features
is_trusted │ 75.7% trusted baseline
is_fraud_device │ 3.8% compromise rate
What You Can Build
Supervised Learning — Fraud Detection
- Binary classifier on
is_fraudwith full feature engineering across all 5 tables - Multi-label classification (alert type prediction)
- Probability calibration benchmarking under real class imbalance (0.84%)
Risk Scoring & Regression
- Customer-level risk score modeling using
credit_score,income_annual_usd,risk_tier, transaction history - Account-level default probability from
balance,credit_limit,status,is_flagged
Anomaly Detection (Unsupervised)
- Isolation Forest / Autoencoder baselines on transaction patterns
- Device trust scoring from behavioral telemetry
- Geographic impossibility detection from
location_city/country+ip_address
Graph Neural Networks
- Heterogeneous graph: customer → account → transaction → alert
- Fraud ring detection via shared device fingerprints or IPs
- Link prediction: which accounts belong to the same fraud ring?
NLP / LLM Fine-Tuning
- Analyst notes as training signal for financial-domain LLMs
- Named entity recognition on merchant names
- Text classification of
analyst_notes→alert_type
Time-Series Analysis
- Transaction velocity features (hourly/daily aggregations)
- Customer behavioral drift detection over 2021–2024
- Seasonal fraud pattern analysis
Multi-Task Learning
- Simultaneous prediction of
is_fraud,risk_score, andalert_type - Joint customer + account + transaction risk models
MLOps & Benchmark Infrastructure
- Reproducible train/val/test splits with temporal holdout
- Class-imbalance benchmarking: SMOTE, focal loss, class-weighted XGBoost
- Model performance baselines on a scale unavailable in public datasets
Statistical Properties
Realistic Class Distribution
| Signal | Positive Rate | Notes |
|---|---|---|
transactions.is_fraud |
0.84% | Matches real-world card fraud rates |
fraud_alerts.confirmed_fraud |
77.4% | High-quality alert pipeline |
customers.is_fraud_suspect |
2.68% | Customer-level exposure |
accounts.is_flagged |
2.93% | Account-level risk |
devices.is_fraud_device |
3.83% | Compromised device rate |
Geographic Realism
| Country | Customers | Primary Currency |
|---|---|---|
| United States | 39% | USD |
| United Kingdom | 20% | GBP |
| Germany | 15% | EUR |
| UAE | 11% | AED |
| Switzerland, Italy, Netherlands, France | 15% combined | CHF / EUR |
Temporal Coverage
- Transaction window: January 2021 – June 2024 (3.5 years)
- Customer tenure: 2010–2023 (14-year range for long-term behavioral modeling)
- Alert resolution SLA: Computable from
alert_timestamp→resolution_timestamp(27% unresolved — mirrors real investigation queues)
Data Quality Notes
| Table | Known Nulls | Notes |
|---|---|---|
transactions |
0.38% in transaction_date |
Realistic ETL artifacts |
fraud_alerts |
24.5% in resolution_timestamp |
Unresolved/open investigations |
accounts |
79.8% in credit_limit |
NULL only for non-CREDIT accounts |
customers |
0 | Complete |
devices |
0 | Complete |
Nulls are by design, not data corruption. credit_limit is NULL for CHECKING/SAVINGS/BUSINESS accounts because it is inapplicable. Unresolved resolution_timestamp values represent active investigation cases — a feature, not a bug.
Comparison to Existing Public Datasets
| Dataset | Records | Tables | Fraud Labels | Relational | Multi-Country | Analyst Notes |
|---|---|---|---|---|---|---|
| BankShield-2M | 2M+ | 5 | ✅ Multi-level | ✅ Full FK | ✅ 10+ countries | ✅ Yes |
| IEEE-CIS Fraud 2019 | 590K | 2 | ✅ | ❌ | ❌ | ❌ |
| PaySim | 6.3M | 1 | ✅ | ❌ | ❌ | ❌ |
| Credit Card Fraud (Kaggle) | 284K | 1 | ✅ | ❌ | ❌ | ❌ |
| BankSim | 594K | 1 | ✅ | ❌ | ❌ | ❌ |
License & Usage
- Fully synthetic — no real individuals, no PII, GDPR/CCPA compliant
- Commercial use permitted under the dataset license
- Suitable for academic research, ML product development, FinTech prototyping, red-team simulation, and fraud analytics education
Get the Full 2-Million-Record Dataset
The files in this repository are a 0.25% sample of the complete dataset.
The full release includes:
transactions.csv— 2,000,000 rowscustomers.csv— 50,000 rowsaccounts.csv— 75,000 rowsfraud_alerts.csv— 22,000 rowsdevices.csv— 35,000 rows- Data dictionary (
schema.md) - Suggested train/val/test split methodology
Citation
If you use this dataset in academic work:
@dataset{BankShield2m_2024,
title = {BankShield-2M: Synthetic Banking and Fraud Detection Dataset},
year = {2024},
publisher = {Synthox},
url = {https://synthox.gumroad.com/l/jsyco}
}
Dataset generated and maintained by Synthox. For questions, feature requests, or bulk licensing, contact via Gumroad.
- Downloads last month
- 53