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 2 new columns ({'txId1', 'txId2'}) and 2 missing columns ({'class', 'txId'}).
This happened while the csv dataset builder was generating data using
hf://datasets/yhoma/elliptic-bitcoin-dataset/elliptic_txs_edgelist.csv (at revision d075df05ace1db9a826512fe71806aaecb76f97e)
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
txId1: int64
txId2: int64
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 477
to
{'txId': Value('int64'), 'class': 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 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 "/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 2 new columns ({'txId1', 'txId2'}) and 2 missing columns ({'class', 'txId'}).
This happened while the csv dataset builder was generating data using
hf://datasets/yhoma/elliptic-bitcoin-dataset/elliptic_txs_edgelist.csv (at revision d075df05ace1db9a826512fe71806aaecb76f97e)
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.
txId
int64 | class
string |
|---|---|
230,425,980
|
unknown
|
5,530,458
|
unknown
|
232,022,460
|
unknown
|
232,438,397
|
2
|
230,460,314
|
unknown
|
230,459,870
|
unknown
|
230,333,930
|
unknown
|
230,595,899
|
unknown
|
232,013,274
|
unknown
|
232,029,206
|
2
|
232,344,069
|
2
|
27,553,029
|
2
|
36,411,953
|
unknown
|
230,405,052
|
unknown
|
34,194,980
|
unknown
|
5,529,846
|
unknown
|
3,881,097
|
2
|
232,457,116
|
2
|
230,409,257
|
unknown
|
32,877,982
|
unknown
|
230,351,738
|
unknown
|
195,218,118
|
unknown
|
88,008,478
|
unknown
|
232,012,569
|
unknown
|
232,412,408
|
unknown
|
232,412,405
|
2
|
232,038,018
|
unknown
|
232,470,342
|
2
|
2,925,426
|
unknown
|
230,550,393
|
2
|
232,051,089
|
2
|
232,470,704
|
2
|
233,591,710
|
unknown
|
234,439,913
|
unknown
|
232,945,017
|
unknown
|
94,251,207
|
unknown
|
6,595,740
|
unknown
|
79,840,192
|
unknown
|
212,704,383
|
unknown
|
212,366,182
|
unknown
|
69,254,632
|
unknown
|
230,595,355
|
unknown
|
166,890,641
|
unknown
|
82,304,496
|
unknown
|
232,033,533
|
2
|
230,470,022
|
unknown
|
230,598,493
|
unknown
|
43,560,505
|
unknown
|
14,878,322
|
unknown
|
230,415,750
|
unknown
|
232,073,372
|
unknown
|
75,604,335
|
unknown
|
230,473,487
|
2
|
7,089,694
|
2
|
231,179,595
|
2
|
3,307,463
|
unknown
|
230,658,679
|
unknown
|
232,074,274
|
unknown
|
5,234,549
|
unknown
|
231,177,927
|
2
|
232,431,877
|
unknown
|
2,758,467
|
2
|
81,273,879
|
unknown
|
232,437,171
|
2
|
3,878,856
|
unknown
|
3,878,886
|
2
|
231,182,296
|
2
|
14,660,781
|
2
|
13,334,987
|
unknown
|
5,530,452
|
unknown
|
230,519,287
|
unknown
|
194,810,163
|
unknown
|
230,423,321
|
unknown
|
232,399,276
|
unknown
|
230,659,456
|
unknown
|
230,658,142
|
unknown
|
230,347,386
|
unknown
|
37,233,982
|
unknown
|
230,427,468
|
unknown
|
43,358,239
|
2
|
230,528,714
|
2
|
75,605,182
|
unknown
|
75,604,052
|
unknown
|
230,585,122
|
2
|
231,208,959
|
unknown
|
230,455,950
|
unknown
|
2,881,274
|
2
|
232,658,952
|
unknown
|
232,658,962
|
unknown
|
230,530,291
|
unknown
|
2,881,273
|
2
|
75,604,616
|
unknown
|
37,232,637
|
unknown
|
230,531,551
|
unknown
|
4,619,363
|
unknown
|
230,516,010
|
unknown
|
230,516,478
|
2
|
232,441,583
|
unknown
|
232,441,589
|
unknown
|
5,488,136
|
2
|
End of preview.
Elliptic Bitcoin Dataset
Dataset Description
This is the Elliptic Bitcoin dataset used for illicit transaction detection in cryptocurrency networks. The dataset contains Bitcoin transaction data with labeled illicit and licit transactions.
Dataset Structure
The dataset consists of three CSV files:
elliptic_txs_features.csv: Transaction features (166 features per transaction)
- 94 local features (derived from transaction information)
- 72 aggregated features (derived from one-hop neighbors)
elliptic_txs_classes.csv: Transaction labels
1= illicit (ransomware, scam, etc.)2= licit (exchanges, services, etc.)unknown= unlabeled transactions
elliptic_txs_edgelist.csv: Transaction graph edges
- Directed edges representing Bitcoin flows between transactions
Dataset Statistics
- Total transactions: 203,769
- Labeled illicit: ~4,545 transactions
- Labeled licit: ~42,019 transactions
- Unlabeled: ~157,205 transactions
- Time steps: 49 (representing different time periods)
Citation
If you use this dataset, please cite the original paper:
@inproceedings{weber2019anti,
title={Anti-money laundering in bitcoin: Experimenting with graph convolutional networks for financial forensics},
author={Weber, Mark and Domeniconi, Giacomo and Chen, Jie and Weidele, Daniel Karl I and Bellei, Claudio and Robinson, Tom and Leiserson, Charles E},
booktitle={Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining},
pages={1954--1964},
year={2019}
}
Usage
from datasets import load_dataset
# Load the dataset
dataset = load_dataset("yhoma/elliptic-bitcoin-dataset")
# Access the CSV files
features_df = pd.read_csv("hf://datasets/yhoma/elliptic-bitcoin-dataset/elliptic_txs_features.csv", header=None)
classes_df = pd.read_csv("hf://datasets/yhoma/elliptic-bitcoin-dataset/elliptic_txs_classes.csv")
edges_df = pd.read_csv("hf://datasets/yhoma/elliptic-bitcoin-dataset/elliptic_txs_edgelist.csv")
License
This dataset is released under the MIT License.
Additional Information
- Original Source: Elliptic Data Set
- Task: Binary classification (illicit vs. licit transactions)
- Suitable for: Graph Neural Networks, LSTM, traditional ML models
- Downloads last month
- 29