Dataset Viewer
Auto-converted to Parquet
Search is not available for this dataset
status of existing checking account
class label
duration in month
int64
credit history
class label
purpose
class label
credit amount
int64
savings account/bonds
class label
present employment since
class label
installment rate in percentage of disposable income
int64
personal status and sex
class label
other debtors / guarantors
class label
present residence since
int64
property
class label
age in years
int64
other installment plans
class label
housing
class label
number of existing credits at this bank
int64
job
class label
number of people being liable to provide maintenance for
int64
telephone
class label
foreign worker
class label
class
class label
0< 0 DM
6
4critical account / other credits existing (not at this bank)
4domestic appliances
1,169
4unknown / no savings account
4>= 7 years
4
2male: single
0none
4
0real estate
67
2none
1own
2
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
10 <= ... < 200 DM
48
2existing credits paid back duly till now
4domestic appliances
5,951
0< 100 DM
21 <= ... < 4 years
2
1female: divorced/separated/married
0none
2
0real estate
22
2none
1own
1
2skilled employee / official
1
0none
0yes
1bad
3no checking account
12
4critical account / other credits existing (not at this bank)
7vacation
2,096
0< 100 DM
34 <= ... < 7 years
2
2male: single
0none
3
0real estate
49
2none
1own
1
1unskilled - resident
2
0none
0yes
0good
0< 0 DM
42
2existing credits paid back duly till now
3radio/television
7,882
0< 100 DM
34 <= ... < 7 years
2
2male: single
2guarantor
4
1building society savings agreement / life insurance
45
2none
2for free
1
2skilled employee / official
2
0none
0yes
0good
0< 0 DM
24
3delay in paying off in the past
0car (new)
4,870
0< 100 DM
21 <= ... < 4 years
3
2male: single
0none
4
3unknown / no property
53
2none
2for free
2
2skilled employee / official
2
0none
0yes
1bad
3no checking account
36
2existing credits paid back duly till now
7vacation
9,055
4unknown / no savings account
21 <= ... < 4 years
2
2male: single
0none
4
3unknown / no property
35
2none
2for free
1
1unskilled - resident
2
1yes, registered under the customer’s name
0yes
0good
3no checking account
24
2existing credits paid back duly till now
3radio/television
2,835
2500 <= ... < 1000 DM
4>= 7 years
3
2male: single
0none
4
1building society savings agreement / life insurance
53
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
36
2existing credits paid back duly till now
1car (used)
6,948
0< 100 DM
21 <= ... < 4 years
2
2male: single
0none
2
2car or other, not in attribute 6
35
2none
0rent
1
3management / self-employed / highly qualified employee / officer
1
1yes, registered under the customer’s name
0yes
0good
3no checking account
12
2existing credits paid back duly till now
4domestic appliances
3,059
3>= 1000 DM
34 <= ... < 7 years
2
0male: divorced/separated
0none
4
0real estate
61
2none
1own
1
1unskilled - resident
1
0none
0yes
0good
10 <= ... < 200 DM
30
4critical account / other credits existing (not at this bank)
0car (new)
5,234
0< 100 DM
0unemployed
4
3male: married/widowed
0none
2
2car or other, not in attribute 6
28
2none
1own
2
3management / self-employed / highly qualified employee / officer
1
0none
0yes
1bad
10 <= ... < 200 DM
12
2existing credits paid back duly till now
0car (new)
1,295
0< 100 DM
1< 1 year
3
1female: divorced/separated/married
0none
1
2car or other, not in attribute 6
25
2none
0rent
1
2skilled employee / official
1
0none
0yes
1bad
0< 0 DM
48
2existing credits paid back duly till now
9business
4,308
0< 100 DM
1< 1 year
3
1female: divorced/separated/married
0none
4
1building society savings agreement / life insurance
24
2none
0rent
1
2skilled employee / official
1
0none
0yes
1bad
10 <= ... < 200 DM
12
2existing credits paid back duly till now
4domestic appliances
1,567
0< 100 DM
21 <= ... < 4 years
1
1female: divorced/separated/married
0none
1
2car or other, not in attribute 6
22
2none
1own
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
0< 0 DM
24
4critical account / other credits existing (not at this bank)
0car (new)
1,199
0< 100 DM
4>= 7 years
4
2male: single
0none
4
2car or other, not in attribute 6
60
2none
1own
2
1unskilled - resident
1
0none
0yes
1bad
0< 0 DM
15
2existing credits paid back duly till now
0car (new)
1,403
0< 100 DM
21 <= ... < 4 years
2
1female: divorced/separated/married
0none
4
2car or other, not in attribute 6
28
2none
0rent
1
2skilled employee / official
1
0none
0yes
0good
0< 0 DM
24
2existing credits paid back duly till now
4domestic appliances
1,282
1100 <= ... < 500 DM
21 <= ... < 4 years
4
1female: divorced/separated/married
0none
2
2car or other, not in attribute 6
32
2none
1own
1
1unskilled - resident
1
0none
0yes
1bad
3no checking account
24
4critical account / other credits existing (not at this bank)
4domestic appliances
2,424
4unknown / no savings account
4>= 7 years
4
2male: single
0none
4
1building society savings agreement / life insurance
53
2none
1own
2
2skilled employee / official
1
0none
0yes
0good
0< 0 DM
30
0no credits taken / all credits paid back duly
9business
8,072
4unknown / no savings account
1< 1 year
2
2male: single
0none
3
2car or other, not in attribute 6
25
0bank
1own
3
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
24
2existing credits paid back duly till now
1car (used)
12,579
0< 100 DM
4>= 7 years
4
1female: divorced/separated/married
0none
2
3unknown / no property
44
2none
2for free
1
3management / self-employed / highly qualified employee / officer
1
1yes, registered under the customer’s name
0yes
1bad
3no checking account
24
2existing credits paid back duly till now
4domestic appliances
3,430
2500 <= ... < 1000 DM
4>= 7 years
3
2male: single
0none
2
2car or other, not in attribute 6
31
2none
1own
1
2skilled employee / official
2
1yes, registered under the customer’s name
0yes
0good
3no checking account
9
4critical account / other credits existing (not at this bank)
0car (new)
2,134
0< 100 DM
21 <= ... < 4 years
4
2male: single
0none
4
2car or other, not in attribute 6
48
2none
1own
3
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
0< 0 DM
6
2existing credits paid back duly till now
4domestic appliances
2,647
2500 <= ... < 1000 DM
21 <= ... < 4 years
2
2male: single
0none
3
0real estate
44
2none
0rent
1
2skilled employee / official
2
0none
0yes
0good
0< 0 DM
10
4critical account / other credits existing (not at this bank)
0car (new)
2,241
0< 100 DM
1< 1 year
1
2male: single
0none
3
0real estate
48
2none
0rent
2
1unskilled - resident
2
0none
1no
0good
10 <= ... < 200 DM
12
4critical account / other credits existing (not at this bank)
1car (used)
1,804
1100 <= ... < 500 DM
1< 1 year
3
2male: single
0none
4
1building society savings agreement / life insurance
44
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
3no checking account
10
4critical account / other credits existing (not at this bank)
3radio/television
2,069
4unknown / no savings account
21 <= ... < 4 years
2
3male: married/widowed
0none
1
2car or other, not in attribute 6
26
2none
1own
2
2skilled employee / official
1
0none
1no
0good
0< 0 DM
6
2existing credits paid back duly till now
3radio/television
1,374
0< 100 DM
21 <= ... < 4 years
1
2male: single
0none
2
0real estate
36
0bank
1own
1
1unskilled - resident
1
1yes, registered under the customer’s name
0yes
0good
3no checking account
6
0no credits taken / all credits paid back duly
4domestic appliances
426
0< 100 DM
4>= 7 years
4
3male: married/widowed
0none
4
2car or other, not in attribute 6
39
2none
1own
1
1unskilled - resident
1
0none
0yes
0good
2>= 200 DM / salary assignments for at least 1 year
12
1all credits at this bank paid back duly
4domestic appliances
409
3>= 1000 DM
21 <= ... < 4 years
3
1female: divorced/separated/married
0none
3
0real estate
42
2none
0rent
2
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
7
2existing credits paid back duly till now
4domestic appliances
2,415
0< 100 DM
21 <= ... < 4 years
3
2male: single
2guarantor
2
0real estate
34
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
0< 0 DM
60
3delay in paying off in the past
9business
6,836
0< 100 DM
4>= 7 years
3
2male: single
0none
4
3unknown / no property
63
2none
1own
2
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
1bad
10 <= ... < 200 DM
18
2existing credits paid back duly till now
9business
1,913
3>= 1000 DM
1< 1 year
3
3male: married/widowed
0none
3
0real estate
36
0bank
1own
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
0< 0 DM
24
2existing credits paid back duly till now
3radio/television
4,020
0< 100 DM
21 <= ... < 4 years
2
2male: single
0none
2
2car or other, not in attribute 6
27
1stores
1own
1
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
18
2existing credits paid back duly till now
0car (new)
5,866
1100 <= ... < 500 DM
21 <= ... < 4 years
2
2male: single
0none
2
2car or other, not in attribute 6
30
2none
1own
2
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
3no checking account
12
4critical account / other credits existing (not at this bank)
9business
1,264
4unknown / no savings account
4>= 7 years
4
2male: single
0none
4
3unknown / no property
57
2none
0rent
1
1unskilled - resident
1
0none
0yes
0good
2>= 200 DM / salary assignments for at least 1 year
12
2existing credits paid back duly till now
3radio/television
1,474
0< 100 DM
1< 1 year
4
1female: divorced/separated/married
0none
1
1building society savings agreement / life insurance
33
0bank
1own
1
3management / self-employed / highly qualified employee / officer
1
1yes, registered under the customer’s name
0yes
0good
10 <= ... < 200 DM
45
4critical account / other credits existing (not at this bank)
4domestic appliances
4,746
0< 100 DM
1< 1 year
4
2male: single
0none
2
1building society savings agreement / life insurance
25
2none
1own
2
1unskilled - resident
1
0none
0yes
1bad
3no checking account
48
4critical account / other credits existing (not at this bank)
7vacation
6,110
0< 100 DM
21 <= ... < 4 years
1
2male: single
0none
3
3unknown / no property
31
0bank
2for free
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
2>= 200 DM / salary assignments for at least 1 year
18
2existing credits paid back duly till now
4domestic appliances
2,100
0< 100 DM
21 <= ... < 4 years
4
2male: single
1co-applicant
2
0real estate
37
1stores
1own
1
2skilled employee / official
1
0none
0yes
1bad
2>= 200 DM / salary assignments for at least 1 year
10
2existing credits paid back duly till now
5repairs
1,225
0< 100 DM
21 <= ... < 4 years
2
2male: single
0none
2
2car or other, not in attribute 6
37
2none
1own
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
10 <= ... < 200 DM
9
2existing credits paid back duly till now
4domestic appliances
458
0< 100 DM
21 <= ... < 4 years
4
2male: single
0none
3
0real estate
24
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
3no checking account
30
2existing credits paid back duly till now
4domestic appliances
2,333
2500 <= ... < 1000 DM
4>= 7 years
4
2male: single
0none
2
2car or other, not in attribute 6
30
0bank
1own
1
3management / self-employed / highly qualified employee / officer
1
0none
0yes
0good
10 <= ... < 200 DM
12
2existing credits paid back duly till now
4domestic appliances
1,158
2500 <= ... < 1000 DM
21 <= ... < 4 years
3
0male: divorced/separated
0none
1
2car or other, not in attribute 6
26
2none
1own
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
10 <= ... < 200 DM
18
3delay in paying off in the past
6education
6,204
0< 100 DM
21 <= ... < 4 years
2
2male: single
0none
4
0real estate
44
2none
1own
1
1unskilled - resident
2
1yes, registered under the customer’s name
0yes
0good
0< 0 DM
30
4critical account / other credits existing (not at this bank)
1car (used)
6,187
1100 <= ... < 500 DM
34 <= ... < 7 years
1
3male: married/widowed
0none
4
2car or other, not in attribute 6
24
2none
0rent
2
2skilled employee / official
1
0none
0yes
0good
0< 0 DM
48
4critical account / other credits existing (not at this bank)
1car (used)
6,143
0< 100 DM
4>= 7 years
4
1female: divorced/separated/married
0none
4
3unknown / no property
58
1stores
2for free
2
1unskilled - resident
1
0none
0yes
1bad
3no checking account
11
4critical account / other credits existing (not at this bank)
0car (new)
1,393
0< 100 DM
1< 1 year
4
1female: divorced/separated/married
0none
4
2car or other, not in attribute 6
35
2none
1own
2
3management / self-employed / highly qualified employee / officer
1
0none
0yes
0good
3no checking account
36
2existing credits paid back duly till now
4domestic appliances
2,299
2500 <= ... < 1000 DM
4>= 7 years
4
2male: single
0none
4
2car or other, not in attribute 6
39
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
0< 0 DM
6
2existing credits paid back duly till now
1car (used)
1,352
2500 <= ... < 1000 DM
0unemployed
1
1female: divorced/separated/married
0none
2
1building society savings agreement / life insurance
23
2none
0rent
1
0unemployed / unskilled - non-resident
1
1yes, registered under the customer’s name
0yes
0good
3no checking account
11
4critical account / other credits existing (not at this bank)
0car (new)
7,228
0< 100 DM
21 <= ... < 4 years
1
2male: single
0none
4
1building society savings agreement / life insurance
39
2none
1own
2
1unskilled - resident
1
0none
0yes
0good
3no checking account
12
2existing credits paid back duly till now
4domestic appliances
2,073
1100 <= ... < 500 DM
21 <= ... < 4 years
4
1female: divorced/separated/married
1co-applicant
2
0real estate
28
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
24
3delay in paying off in the past
3radio/television
2,333
4unknown / no savings account
1< 1 year
4
2male: single
0none
2
1building society savings agreement / life insurance
29
0bank
1own
1
1unskilled - resident
1
0none
0yes
0good
10 <= ... < 200 DM
27
3delay in paying off in the past
1car (used)
5,965
0< 100 DM
4>= 7 years
1
2male: single
0none
2
2car or other, not in attribute 6
30
2none
1own
2
3management / self-employed / highly qualified employee / officer
1
1yes, registered under the customer’s name
0yes
0good
3no checking account
12
2existing credits paid back duly till now
4domestic appliances
1,262
0< 100 DM
21 <= ... < 4 years
3
2male: single
0none
2
2car or other, not in attribute 6
25
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
3no checking account
18
2existing credits paid back duly till now
1car (used)
3,378
4unknown / no savings account
21 <= ... < 4 years
2
2male: single
0none
1
1building society savings agreement / life insurance
31
2none
1own
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
10 <= ... < 200 DM
36
3delay in paying off in the past
0car (new)
2,225
0< 100 DM
4>= 7 years
4
2male: single
0none
4
3unknown / no property
57
0bank
2for free
2
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
1bad
3no checking account
6
1all credits at this bank paid back duly
0car (new)
783
4unknown / no savings account
21 <= ... < 4 years
1
2male: single
2guarantor
2
0real estate
26
1stores
1own
1
1unskilled - resident
2
0none
0yes
0good
10 <= ... < 200 DM
12
2existing credits paid back duly till now
4domestic appliances
6,468
4unknown / no savings account
0unemployed
2
2male: single
0none
1
3unknown / no property
52
2none
1own
1
3management / self-employed / highly qualified employee / officer
1
1yes, registered under the customer’s name
0yes
1bad
3no checking account
36
4critical account / other credits existing (not at this bank)
4domestic appliances
9,566
0< 100 DM
21 <= ... < 4 years
2
1female: divorced/separated/married
0none
2
2car or other, not in attribute 6
31
1stores
1own
2
2skilled employee / official
1
0none
0yes
0good
2>= 200 DM / salary assignments for at least 1 year
18
2existing credits paid back duly till now
0car (new)
1,961
0< 100 DM
4>= 7 years
3
1female: divorced/separated/married
0none
2
2car or other, not in attribute 6
23
2none
1own
1
3management / self-employed / highly qualified employee / officer
1
0none
0yes
0good
0< 0 DM
36
4critical account / other credits existing (not at this bank)
3radio/television
6,229
0< 100 DM
1< 1 year
4
1female: divorced/separated/married
1co-applicant
4
3unknown / no property
23
2none
0rent
2
1unskilled - resident
1
1yes, registered under the customer’s name
0yes
1bad
10 <= ... < 200 DM
9
2existing credits paid back duly till now
9business
1,391
0< 100 DM
21 <= ... < 4 years
2
3male: married/widowed
0none
1
0real estate
27
0bank
1own
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
10 <= ... < 200 DM
15
4critical account / other credits existing (not at this bank)
4domestic appliances
1,537
4unknown / no savings account
4>= 7 years
4
2male: single
2guarantor
4
0real estate
50
2none
1own
2
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
10 <= ... < 200 DM
36
0no credits taken / all credits paid back duly
9business
1,953
0< 100 DM
4>= 7 years
4
2male: single
0none
4
3unknown / no property
61
2none
2for free
1
3management / self-employed / highly qualified employee / officer
1
1yes, registered under the customer’s name
0yes
1bad
10 <= ... < 200 DM
48
0no credits taken / all credits paid back duly
9business
14,421
0< 100 DM
21 <= ... < 4 years
2
2male: single
0none
2
2car or other, not in attribute 6
25
2none
1own
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
1bad
3no checking account
24
2existing credits paid back duly till now
4domestic appliances
3,181
0< 100 DM
1< 1 year
4
1female: divorced/separated/married
0none
4
1building society savings agreement / life insurance
26
2none
1own
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
3no checking account
27
2existing credits paid back duly till now
6education
5,190
4unknown / no savings account
4>= 7 years
4
2male: single
0none
4
1building society savings agreement / life insurance
48
2none
1own
4
2skilled employee / official
2
1yes, registered under the customer’s name
0yes
0good
3no checking account
12
2existing credits paid back duly till now
4domestic appliances
2,171
0< 100 DM
1< 1 year
2
1female: divorced/separated/married
0none
2
2car or other, not in attribute 6
29
0bank
1own
1
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
12
2existing credits paid back duly till now
0car (new)
1,007
3>= 1000 DM
21 <= ... < 4 years
4
3male: married/widowed
0none
1
0real estate
22
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
3no checking account
36
2existing credits paid back duly till now
7vacation
1,819
0< 100 DM
21 <= ... < 4 years
4
2male: single
0none
4
3unknown / no property
37
1stores
2for free
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
1bad
3no checking account
36
2existing credits paid back duly till now
4domestic appliances
2,394
4unknown / no savings account
21 <= ... < 4 years
4
1female: divorced/separated/married
0none
4
2car or other, not in attribute 6
25
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
3no checking account
36
2existing credits paid back duly till now
1car (used)
8,133
0< 100 DM
21 <= ... < 4 years
1
1female: divorced/separated/married
0none
2
1building society savings agreement / life insurance
30
0bank
1own
1
2skilled employee / official
1
0none
0yes
0good
3no checking account
7
4critical account / other credits existing (not at this bank)
4domestic appliances
730
4unknown / no savings account
4>= 7 years
4
2male: single
0none
2
1building society savings agreement / life insurance
46
2none
0rent
2
1unskilled - resident
1
1yes, registered under the customer’s name
0yes
0good
0< 0 DM
8
4critical account / other credits existing (not at this bank)
2furniture/equipment
1,164
0< 100 DM
4>= 7 years
3
2male: single
0none
4
3unknown / no property
51
0bank
2for free
2
3management / self-employed / highly qualified employee / officer
2
1yes, registered under the customer’s name
0yes
0good
10 <= ... < 200 DM
42
4critical account / other credits existing (not at this bank)
9business
5,954
0< 100 DM
34 <= ... < 7 years
2
1female: divorced/separated/married
0none
1
0real estate
41
0bank
1own
2
1unskilled - resident
1
0none
0yes
0good
0< 0 DM
36
2existing credits paid back duly till now
7vacation
1,977
4unknown / no savings account
4>= 7 years
4
2male: single
0none
4
3unknown / no property
40
2none
1own
1
3management / self-employed / highly qualified employee / officer
1
1yes, registered under the customer’s name
0yes
1bad
0< 0 DM
12
4critical account / other credits existing (not at this bank)
1car (used)
1,526
0< 100 DM
4>= 7 years
4
2male: single
0none
4
3unknown / no property
66
2none
2for free
2
3management / self-employed / highly qualified employee / officer
1
0none
0yes
0good
0< 0 DM
42
2existing credits paid back duly till now
4domestic appliances
3,965
0< 100 DM
1< 1 year
4
2male: single
0none
3
2car or other, not in attribute 6
34
2none
1own
1
2skilled employee / official
1
0none
0yes
1bad
10 <= ... < 200 DM
11
3delay in paying off in the past
4domestic appliances
4,771
0< 100 DM
34 <= ... < 7 years
2
2male: single
0none
4
1building society savings agreement / life insurance
51
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
3no checking account
54
0no credits taken / all credits paid back duly
1car (used)
9,436
4unknown / no savings account
21 <= ... < 4 years
2
2male: single
0none
2
1building society savings agreement / life insurance
39
2none
1own
1
1unskilled - resident
2
0none
0yes
0good
10 <= ... < 200 DM
30
2existing credits paid back duly till now
3radio/television
3,832
0< 100 DM
1< 1 year
2
3male: married/widowed
0none
1
1building society savings agreement / life insurance
22
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
3no checking account
24
2existing credits paid back duly till now
4domestic appliances
5,943
4unknown / no savings account
1< 1 year
1
1female: divorced/separated/married
0none
1
2car or other, not in attribute 6
44
2none
1own
2
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
1bad
3no checking account
15
2existing credits paid back duly till now
4domestic appliances
1,213
2500 <= ... < 1000 DM
4>= 7 years
4
2male: single
0none
3
1building society savings agreement / life insurance
47
1stores
1own
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
3no checking account
18
2existing credits paid back duly till now
9business
1,568
1100 <= ... < 500 DM
21 <= ... < 4 years
3
1female: divorced/separated/married
0none
4
1building society savings agreement / life insurance
24
2none
0rent
1
1unskilled - resident
1
0none
0yes
0good
0< 0 DM
24
2existing credits paid back duly till now
2furniture/equipment
1,755
0< 100 DM
4>= 7 years
4
1female: divorced/separated/married
2guarantor
4
0real estate
58
2none
1own
1
1unskilled - resident
1
1yes, registered under the customer’s name
0yes
0good
0< 0 DM
10
2existing credits paid back duly till now
4domestic appliances
2,315
0< 100 DM
4>= 7 years
3
2male: single
0none
4
0real estate
52
2none
1own
1
1unskilled - resident
1
0none
0yes
0good
3no checking account
12
4critical account / other credits existing (not at this bank)
9business
1,412
0< 100 DM
21 <= ... < 4 years
4
1female: divorced/separated/married
2guarantor
2
0real estate
29
2none
1own
2
3management / self-employed / highly qualified employee / officer
1
1yes, registered under the customer’s name
0yes
0good
10 <= ... < 200 DM
18
4critical account / other credits existing (not at this bank)
3radio/television
1,295
0< 100 DM
1< 1 year
4
1female: divorced/separated/married
0none
1
1building society savings agreement / life insurance
27
2none
1own
2
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
36
2existing credits paid back duly till now
7vacation
12,612
1100 <= ... < 500 DM
21 <= ... < 4 years
1
2male: single
0none
4
3unknown / no property
47
2none
2for free
1
2skilled employee / official
2
1yes, registered under the customer’s name
0yes
1bad
0< 0 DM
18
2existing credits paid back duly till now
0car (new)
2,249
1100 <= ... < 500 DM
34 <= ... < 7 years
4
2male: single
0none
3
2car or other, not in attribute 6
30
2none
1own
1
3management / self-employed / highly qualified employee / officer
2
1yes, registered under the customer’s name
0yes
0good
0< 0 DM
12
0no credits taken / all credits paid back duly
6education
1,108
0< 100 DM
34 <= ... < 7 years
4
2male: single
0none
3
0real estate
28
2none
1own
2
2skilled employee / official
1
0none
0yes
1bad
3no checking account
12
4critical account / other credits existing (not at this bank)
4domestic appliances
618
0< 100 DM
4>= 7 years
4
2male: single
0none
4
0real estate
56
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
0< 0 DM
12
4critical account / other credits existing (not at this bank)
1car (used)
1,409
0< 100 DM
4>= 7 years
4
2male: single
0none
3
0real estate
54
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
3no checking account
12
4critical account / other credits existing (not at this bank)
4domestic appliances
797
4unknown / no savings account
4>= 7 years
4
1female: divorced/separated/married
0none
3
1building society savings agreement / life insurance
33
0bank
1own
1
1unskilled - resident
2
0none
0yes
1bad
2>= 200 DM / salary assignments for at least 1 year
24
4critical account / other credits existing (not at this bank)
3radio/television
3,617
4unknown / no savings account
4>= 7 years
4
2male: single
1co-applicant
4
3unknown / no property
20
2none
0rent
2
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
12
2existing credits paid back duly till now
0car (new)
1,318
3>= 1000 DM
4>= 7 years
4
2male: single
0none
4
0real estate
54
2none
1own
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
0good
10 <= ... < 200 DM
54
0no credits taken / all credits paid back duly
9business
15,945
0< 100 DM
1< 1 year
3
2male: single
0none
4
3unknown / no property
58
2none
0rent
1
2skilled employee / official
1
1yes, registered under the customer’s name
0yes
1bad
3no checking account
12
4critical account / other credits existing (not at this bank)
7vacation
2,012
4unknown / no savings account
34 <= ... < 7 years
4
1female: divorced/separated/married
0none
2
2car or other, not in attribute 6
61
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
18
2existing credits paid back duly till now
9business
2,622
1100 <= ... < 500 DM
21 <= ... < 4 years
4
2male: single
0none
4
2car or other, not in attribute 6
34
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
36
4critical account / other credits existing (not at this bank)
4domestic appliances
2,337
0< 100 DM
4>= 7 years
4
2male: single
0none
4
0real estate
36
2none
1own
1
2skilled employee / official
1
0none
0yes
0good
10 <= ... < 200 DM
20
3delay in paying off in the past
1car (used)
7,057
4unknown / no savings account
34 <= ... < 7 years
3
2male: single
0none
4
1building society savings agreement / life insurance
36
0bank
0rent
2
3management / self-employed / highly qualified employee / officer
2
1yes, registered under the customer’s name
0yes
0good
End of preview. Expand in Data Studio

Dataset Card for Dataset Name

This dataset is a precise version of Statlog (German Credit Data), donated on 11/16/1994.

We used the following Python script to produce this Hugging Face dataset.

columns = [
    "status of existing checking account",  # 1 (categorical)
    "duration in month",  # 2 (numerical)
    "credit history",  # 3 (categorical)
    "purpose",  # 4 (categorical)
    "credit amount",  # 5 (numerical)
    "savings account/bonds",  # 6 (categorical)
    "present employment since",  # 7 (categorical)
    "installment rate in percentage of disposable income",  # 8 (numerical)
    "personal status and sex",  # 9 (categorical)
    "other debtors / guarantors",  # 10 (categorical)
    "present residence since",  # 11 (numerical)
    "property",  # 12 (categorical)
    "age in years",  # 13 (numerical)
    "other installment plans",  # 14 (categorical)
    "housing",  # 15 (categorical)
    "number of existing credits at this bank",  # 16 (numerical)
    "job",  # 17 (categorical)
    "number of people being liable to provide maintenance for",  # 18 (numerical)
    "telephone",  # 19 (categorical)
    "foreign worker",  # 20 (categorical)
    "class"  # 21 (target label, categorical)
]


continuous_columns = [
    "duration in month", "credit amount",
    "installment rate in percentage of disposable income",
    "present residence since", "age in years",
    "number of existing credits at this bank",
    "number of people being liable to provide maintenance for"
]

categorical_columns = [
    "status of existing checking account", "credit history", "purpose",
    "savings account/bonds", "present employment since",
    "personal status and sex", "other debtors / guarantors", "property",
    "other installment plans", "housing", "job", "telephone",
    "foreign worker", "class"
]


import pandas as pd

# File path
file_path_categorical = "https://archive.ics.uci.edu/ml/machine-learning-databases/statlog/german/german.data"

# Load dataset
df_categorical = pd.read_csv(file_path_categorical, sep=" ", names=columns, skipinitialspace=True)

# Convert categorical features to integer indices
category_mappings = {}

for col in categorical_columns:
    df_categorical[col] = df_categorical[col].astype("category")
    category_mappings[col] = list(df_categorical[col].cat.categories)
    df_categorical[col] = df_categorical[col].cat.codes  # Convert to int indices

df_categorical = df_categorical[columns]


final_mappings = {
    "status of existing checking account": {
        "A11": "< 0 DM",
        "A12": "0 <= ... < 200 DM",
        "A13": ">= 200 DM / salary assignments for at least 1 year",
        "A14": "no checking account"
    },
    "credit history": {
        "A30": "no credits taken / all credits paid back duly",
        "A31": "all credits at this bank paid back duly",
        "A32": "existing credits paid back duly till now",
        "A33": "delay in paying off in the past",
        "A34": "critical account / other credits existing (not at this bank)"
    },
    "purpose": {
        "A40": "car (new)",
        "A41": "car (used)",
        "A42": "furniture/equipment",
        "A43": "radio/television",
        "A44": "domestic appliances",
        "A45": "repairs",
        "A46": "education",
        "A47": "vacation",
        "A48": "retraining",
        "A49": "business",
        "A410": "others"
    },
    "savings account/bonds": {
        "A61": "< 100 DM",
        "A62": "100 <= ... < 500 DM",
        "A63": "500 <= ... < 1000 DM",
        "A64": ">= 1000 DM",
        "A65": "unknown / no savings account"
    },
    "present employment since": {
        "A71": "unemployed",
        "A72": "< 1 year",
        "A73": "1 <= ... < 4 years",
        "A74": "4 <= ... < 7 years",
        "A75": ">= 7 years"
    },
    "personal status and sex": {
        "A91": "male: divorced/separated",
        "A92": "female: divorced/separated/married",
        "A93": "male: single",
        "A94": "male: married/widowed",
        "A95": "female: single"
    },
    "other debtors / guarantors": {
        "A101": "none",
        "A102": "co-applicant",
        "A103": "guarantor"
    },
    "property": {
        "A121": "real estate",
        "A122": "building society savings agreement / life insurance",
        "A123": "car or other, not in attribute 6",
        "A124": "unknown / no property"
    },
    "other installment plans": {
        "A141": "bank",
        "A142": "stores",
        "A143": "none"
    },
    "housing": {
        "A151": "rent",
        "A152": "own",
        "A153": "for free"
    },
    "job": {
        "A171": "unemployed / unskilled - non-resident",
        "A172": "unskilled - resident",
        "A173": "skilled employee / official",
        "A174": "management / self-employed / highly qualified employee / officer"
    },
    "telephone": {
        "A191": "none",
        "A192": "yes, registered under the customer’s name"
    },
    "foreign worker": {
        "A201": "yes",
        "A202": "no"
    },
    "class": {
        "1": "good",
        "2": "bad"
    }
}


from datasets import Dataset, DatasetDict, Features, Value, ClassLabel

hf_features_categorical = Features({
    col: Value("int64") if col in continuous_columns else
         ClassLabel(names=list(final_mappings[col].values())) if col in final_mappings else
         ClassLabel(names=["good", "bad"])  # "class" column
    for col in columns
})

from datasets import DatasetDict

# Convert pandas DataFrame to Hugging Face Dataset
df_categorical = df_categorical[columns]
hf_categorical = Dataset.from_pandas(df_categorical, features=hf_features_categorical)

# Store in a dataset dictionary
hf_dataset_categorical = DatasetDict({"train": hf_categorical})

# Print dataset structure
print(hf_dataset_categorical)

The printed output could look like

DatasetDict({
    train: Dataset({
        features: ['status of existing checking account', 'duration in month', 'credit history', 'purpose', 'credit amount', 'savings account/bonds', 'present employment since', 'installment rate in percentage of disposable income', 'personal status and sex', 'other debtors / guarantors', 'present residence since', 'property', 'age in years', 'other installment plans', 'housing', 'number of existing credits at this bank', 'job', 'number of people being liable to provide maintenance for', 'telephone', 'foreign worker', 'class'],
        num_rows: 1000
    })
})

Note that there is another file for numerical data, but seems that the content is not more than what we have so far, so we don't include it.

Downloads last month
8