File size: 3,950 Bytes
691fa67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d11fa72
691fa67
d11fa72
691fa67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d11fa72
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
license: mit
task_categories:
  - tabular-classification
  - tabular-regression
language:
  - en
size_categories:
  - n<1K
  - 1K<n<10K
tags:
  - imputation
  - missing-data
  - tabular
pretty_name: imputify datasets
configs:
  - config_name: iris
    data_files: iris.parquet
  - config_name: wine
    data_files: wine.parquet
  - config_name: diabetes
    data_files: diabetes.parquet
  - config_name: breast_cancer
    data_files: breast_cancer.parquet
  - config_name: titanic
    data_files: titanic.parquet
  - config_name: heart_disease
    data_files: heart_disease.parquet
  - config_name: blood_transfusion
    data_files: blood_transfusion.parquet
  - config_name: thalassemia
    data_files: thalassemia.parquet
  - config_name: ilpd
    data_files: ilpd.parquet
  - config_name: spas_agri
    data_files: spas_agri.parquet
---

# imputify datasets

Curated tabular datasets bundled with the [`imputify`](https://github.com/gabfssilva/imputify)
library for examples, tests, and missing-data benchmarks. Every file is a single parquet:
feature columns first, target column last, no missing values. Column names are
`snake_case`; columns that the upstream sources include for identification but not
modeling (IDs, free-text names) have been dropped.

## Usage

```python
from imputify import load, introduce_missing

X, y = load("iris")                              # clean
X_missing, mask = introduce_missing(X, 0.3)      # ampute for experiments
```

`load` caches downloads through `huggingface_hub` (default `~/.cache/huggingface/hub`).
The complete catalogue is exposed as `imputify.DATASETS` and the literal type as
`imputify.Dataset`.

## Catalogue

| Name | Rows | Features | Numeric | Categorical | Target dtype | Original source |
|------|-----:|---------:|--------:|------------:|--------------|-----------------|
| `iris`              |   150 |  4 |  4 | 0 | `int64`    | `sklearn.datasets.load_iris` (Fisher, 1936) |
| `wine`              |   178 | 13 | 13 | 0 | `int64`    | `sklearn.datasets.load_wine` (UCI Wine Recognition) |
| `diabetes`          |   442 | 10 | 10 | 0 | `float64`  | `sklearn.datasets.load_diabetes` (Efron et al., 2004) |
| `breast_cancer`     |   569 | 30 | 30 | 0 | `int64`    | `sklearn.datasets.load_breast_cancer` (UCI WDBC) |
| `titanic`           | 1 043 |  7 |  5 | 2 | `category` | OpenML `titanic` |
| `heart_disease`     |   270 | 13 | 13 | 0 | `category` | UCI Heart Disease / OpenML `heart-statlog` |
| `blood_transfusion` |   748 |  4 |  4 | 0 | `category` | UCI Blood Transfusion Service Center |
| `thalassemia`       |   606 | 18 | 12 | 6 | `object`   | [Mendeley Data `8kcdkxmcjw`](https://data.mendeley.com/datasets/8kcdkxmcjw/1) — Pabna, Bangladesh thalassemia cohort, Data in Brief 2025 |
| `ilpd`              |   583 | 10 |  9 | 1 | `category` | UCI Indian Liver Patient Dataset (ILPD) |
| `spas_agri`         | 4 191 | 14 |  9 | 5 | `object`   | [Mendeley Data `cphdw4z5kw`](https://data.mendeley.com/datasets/cphdw4z5kw/2) — SPAS-Dataset-BD, Bangladesh precision agriculture, Data in Brief 2025 |

Counts come from running the loader once: rows = `len(X)`, features = `X.shape[1]`,
numeric/categorical split = `select_dtypes(...)`.

## Format

Each parquet has the **target** as the last column. `imputify.load(name)` splits it back
into `(X, y)`:

```python
df = pd.read_parquet("iris.parquet")
X, y = df.drop(columns=["target"]), df["target"]
```

Categorical features are stored as pandas `category` (titanic) or `object`
(thalassemia, spas_agri) and round-trip through parquet without manual casting.

## Licensing & attribution

Datasets carry their original licences. `iris`, `wine`, `diabetes`, and `breast_cancer`
ship with scikit-learn (BSD-compatible). The UCI / OpenML datasets are redistributed
under their respective terms. The `thalassemia` and `spas_agri` derivatives are from
Mendeley Data (CC BY 4.0); cite the Data in Brief 2025 papers in publications.