school
stringclasses
2 values
sex
stringclasses
2 values
age
int64
15
22
address
stringclasses
2 values
famsize
stringclasses
2 values
Pstatus
stringclasses
2 values
Medu
int64
0
4
Fedu
int64
0
4
Mjob
stringclasses
5 values
Fjob
stringclasses
5 values
reason
stringclasses
4 values
guardian
stringclasses
3 values
traveltime
int64
1
4
studytime
int64
1
4
failures
int64
0
3
schoolsup
stringclasses
2 values
famsup
stringclasses
2 values
paid
stringclasses
2 values
activities
stringclasses
2 values
nursery
stringclasses
2 values
higher
stringclasses
2 values
internet
stringclasses
2 values
romantic
stringclasses
2 values
famrel
int64
1
5
freetime
int64
1
5
goout
int64
1
5
Dalc
int64
1
5
Walc
int64
1
5
health
int64
1
5
absences
int64
0
75
G1
int64
0
19
G2
int64
0
19
G3
int64
0
20
GP
M
16
U
GT3
T
4
4
services
services
other
mother
1
1
0
yes
yes
yes
yes
yes
yes
yes
no
4
5
5
5
5
4
14
7
7
5
GP
M
16
U
GT3
T
4
4
services
teacher
other
father
1
3
0
no
yes
no
yes
yes
yes
yes
yes
4
4
3
1
1
4
0
16
17
17
GP
M
15
U
GT3
T
4
4
services
other
course
mother
1
1
0
no
yes
no
yes
no
yes
yes
no
5
3
3
1
1
5
4
10
13
14
GP
F
15
U
GT3
T
3
2
services
other
home
mother
2
2
0
yes
yes
yes
no
yes
yes
yes
no
4
3
5
1
1
2
26
7
6
6
GP
M
15
U
GT3
A
3
4
services
other
course
mother
1
2
0
no
yes
yes
yes
yes
yes
yes
no
5
4
4
1
1
1
0
16
18
18
GP
F
15
U
GT3
A
3
3
other
health
reputation
father
1
4
0
yes
no
no
no
yes
yes
no
no
4
3
3
1
1
4
10
10
11
11
GP
F
15
U
GT3
T
2
2
other
other
course
mother
1
4
0
yes
yes
yes
no
yes
yes
yes
no
5
1
2
1
1
3
8
7
8
8
GP
M
16
U
GT3
T
3
3
services
other
home
father
1
3
0
no
yes
no
yes
yes
yes
yes
no
5
3
3
1
1
5
2
16
18
18
GP
M
15
R
GT3
T
4
4
other
other
home
father
4
4
0
no
yes
yes
yes
yes
yes
yes
yes
1
3
5
3
5
1
6
10
13
13
GP
F
16
U
LE3
T
4
4
health
health
other
mother
1
3
0
no
yes
yes
yes
yes
yes
yes
yes
5
4
5
1
1
4
4
14
15
16
GP
M
15
U
LE3
A
4
4
teacher
teacher
course
mother
1
1
0
no
no
no
yes
yes
yes
yes
no
5
5
3
1
1
4
6
18
19
19
GP
F
16
R
GT3
T
3
3
services
other
reputation
father
1
3
1
yes
yes
no
yes
yes
yes
yes
no
4
1
2
1
1
2
0
7
10
10
GP
F
16
U
GT3
T
2
2
at_home
other
home
mother
1
2
1
yes
no
no
yes
yes
yes
yes
no
3
1
2
1
1
5
6
10
13
13
GP
M
15
U
LE3
T
4
2
teacher
other
course
mother
1
1
0
no
no
no
no
yes
yes
yes
no
3
5
2
1
1
3
10
18
19
19
GP
M
15
R
GT3
T
2
1
health
services
reputation
mother
1
2
0
no
no
no
yes
yes
yes
yes
yes
5
4
2
1
1
5
8
9
9
9
GP
M
16
U
GT3
T
4
4
teacher
teacher
course
father
1
2
0
no
yes
no
yes
yes
yes
yes
no
5
4
4
1
2
5
2
15
15
16
GP
M
15
U
GT3
T
4
4
other
teacher
reputation
father
2
2
0
no
yes
no
yes
yes
yes
no
no
4
4
3
1
1
2
2
11
13
14
GP
M
16
U
GT3
T
3
3
other
services
home
father
2
1
0
no
no
no
yes
yes
yes
yes
no
5
4
2
1
1
5
0
13
14
13
GP
M
17
R
GT3
T
1
3
other
other
course
father
3
2
1
no
yes
no
yes
yes
yes
yes
no
5
2
4
1
4
5
20
9
7
8
GP
M
15
U
GT3
T
3
4
other
other
reputation
father
1
1
0
no
no
no
no
yes
yes
yes
no
3
4
3
1
2
4
6
14
13
13
GP
F
15
U
GT3
T
1
2
at_home
services
course
mother
1
2
0
no
no
no
no
no
yes
yes
no
3
2
3
1
2
1
2
16
15
15
GP
M
15
U
GT3
T
2
2
services
services
home
father
1
4
0
no
yes
yes
yes
yes
yes
yes
no
5
5
4
1
2
5
6
16
14
15
GP
F
16
U
LE3
T
2
4
other
health
course
father
2
2
0
no
yes
yes
yes
yes
yes
yes
yes
4
2
2
1
2
5
2
13
13
13
GP
M
16
U
GT3
T
4
4
health
other
course
mother
1
1
0
no
yes
no
yes
yes
yes
yes
no
3
4
4
1
4
5
18
14
11
13
GP
F
16
U
GT3
T
2
2
other
other
home
mother
1
2
0
no
no
yes
no
yes
yes
yes
yes
5
4
4
1
1
5
0
8
7
8
GP
M
15
U
GT3
T
3
4
services
services
home
father
1
1
0
yes
no
no
no
yes
yes
yes
no
5
5
5
3
2
5
0
13
13
12
GP
F
15
U
LE3
A
3
4
other
other
home
mother
1
2
0
yes
no
no
yes
yes
yes
yes
yes
5
3
2
1
1
1
0
7
10
11
GP
F
19
U
GT3
T
0
1
at_home
other
course
other
1
2
3
no
yes
no
no
no
no
no
no
3
4
2
1
1
5
2
7
8
9
GP
M
18
R
GT3
T
2
2
services
other
reputation
mother
1
1
2
no
yes
no
yes
yes
yes
yes
no
3
3
3
1
2
4
0
7
4
0
GP
M
16
R
GT3
T
4
4
teacher
teacher
course
mother
1
1
0
no
no
yes
yes
yes
yes
yes
no
3
5
5
2
5
4
8
18
18
18
GP
F
15
R
GT3
T
3
4
services
teacher
course
father
2
3
2
no
yes
no
no
yes
yes
yes
yes
4
2
2
2
2
5
0
12
0
0
GP
F
15
U
GT3
T
1
1
at_home
other
course
mother
3
1
0
no
yes
no
yes
no
yes
yes
yes
4
3
3
1
2
4
0
8
0
0
GP
F
17
U
LE3
T
2
2
other
other
course
father
1
1
0
no
yes
no
no
yes
yes
yes
yes
3
4
4
1
3
5
12
10
13
12
GP
F
16
U
GT3
A
3
4
services
other
course
father
1
1
0
no
no
no
no
yes
yes
yes
no
3
2
1
1
4
5
16
12
11
11
GP
M
15
R
GT3
T
3
4
at_home
teacher
course
mother
4
2
0
no
yes
no
no
yes
yes
no
yes
5
3
3
1
1
5
0
9
0
0
GP
F
15
U
GT3
T
4
4
services
at_home
course
mother
1
3
0
no
yes
no
yes
yes
yes
yes
yes
4
3
3
1
1
5
0
11
0
0
GP
M
17
R
GT3
T
3
4
at_home
other
course
mother
3
2
0
no
no
no
no
yes
yes
no
no
5
4
5
2
4
5
0
10
0
0
GP
F
16
U
GT3
A
3
3
other
other
course
other
2
1
2
no
yes
no
yes
no
yes
yes
yes
4
3
2
1
1
5
0
4
0
0
GP
M
16
U
LE3
T
1
1
services
other
course
mother
1
2
1
no
no
no
no
yes
yes
no
yes
4
4
4
1
3
5
0
14
12
12
GP
F
15
U
GT3
T
4
4
teacher
teacher
course
mother
2
1
0
no
no
no
yes
yes
yes
yes
no
4
3
2
1
1
5
0
16
16
15
GP
M
15
U
GT3
T
4
3
teacher
services
course
father
2
4
0
yes
yes
no
no
yes
yes
yes
no
2
2
2
1
1
3
0
7
9
0
GP
M
16
U
LE3
T
2
2
services
services
reputation
father
2
1
2
no
yes
no
yes
yes
yes
yes
no
2
3
3
2
2
2
8
9
9
9
GP
F
15
U
GT3
T
4
4
teacher
services
course
mother
1
3
0
no
yes
yes
yes
yes
yes
yes
no
4
2
2
1
1
5
2
9
11
11
GP
F
16
U
LE3
T
1
1
at_home
at_home
course
mother
1
1
0
no
no
no
no
yes
yes
yes
no
3
4
4
3
3
1
2
14
14
13
GP
M
17
U
GT3
T
2
1
other
other
home
mother
1
1
3
no
yes
no
no
yes
yes
yes
no
5
4
5
1
2
5
0
5
0
0
GP
F
15
U
GT3
T
1
1
other
services
course
father
1
2
0
no
yes
yes
no
yes
yes
yes
no
4
4
2
1
2
5
0
8
11
11
GP
F
15
U
GT3
T
3
2
health
services
home
father
1
2
3
no
yes
no
no
yes
yes
yes
no
3
3
2
1
1
3
0
6
7
0
GP
F
15
U
GT3
T
1
2
at_home
other
course
mother
1
2
0
no
yes
yes
no
no
yes
yes
no
4
3
2
1
1
5
2
10
11
11
GP
M
16
U
GT3
T
4
4
teacher
teacher
course
mother
1
1
0
no
yes
no
no
yes
no
yes
yes
3
3
2
2
1
5
0
7
6
0
GP
M
15
U
LE3
A
2
1
services
other
course
mother
4
1
3
no
no
no
no
yes
yes
yes
no
4
5
5
2
5
5
0
8
9
10
GP
M
18
U
LE3
T
1
1
other
other
course
mother
1
1
3
no
no
no
no
yes
no
yes
yes
2
3
5
2
5
4
0
6
5
0
GP
M
16
U
LE3
T
2
1
at_home
other
course
mother
1
1
1
no
no
no
yes
yes
yes
no
yes
4
4
4
3
5
5
6
12
13
14
GP
F
15
R
GT3
T
3
3
services
services
reputation
other
2
3
2
no
yes
yes
yes
yes
yes
yes
yes
4
2
1
2
3
3
8
10
10
10
GP
M
19
U
GT3
T
3
2
services
at_home
home
mother
1
1
3
no
yes
no
no
yes
no
yes
yes
4
5
4
1
1
4
0
5
0
0
GP
F
17
U
GT3
T
4
4
other
teacher
course
mother
1
1
0
yes
yes
no
no
yes
yes
no
yes
4
2
1
1
1
4
0
11
11
12
GP
M
15
R
GT3
T
2
3
at_home
services
course
mother
1
2
0
yes
no
yes
yes
yes
yes
no
no
4
4
4
1
1
1
2
11
8
8
GP
M
17
R
LE3
T
1
2
other
other
reputation
mother
1
1
0
no
no
no
no
yes
yes
no
no
2
2
2
3
3
5
8
16
12
13
GP
F
18
R
GT3
T
1
1
at_home
other
course
mother
3
1
3
no
yes
no
yes
no
yes
no
no
5
2
5
1
5
4
6
9
8
10
GP
M
16
R
GT3
T
2
2
at_home
other
course
mother
3
1
0
no
no
no
no
no
yes
no
no
4
2
2
1
2
3
2
17
15
15
GP
M
16
U
GT3
T
3
3
other
services
course
father
1
2
1
no
yes
yes
no
yes
yes
yes
yes
4
5
5
4
4
5
4
10
12
12
GP
M
17
R
LE3
T
2
1
at_home
other
course
mother
2
1
2
no
no
no
yes
yes
no
yes
yes
3
3
2
2
2
5
0
7
6
0
GP
M
15
R
GT3
T
3
2
other
other
course
mother
2
2
2
yes
yes
no
no
yes
yes
yes
yes
4
4
4
1
4
3
6
5
9
7
GP
M
16
U
LE3
T
1
2
other
other
course
mother
2
1
1
no
no
no
yes
yes
yes
no
no
4
4
4
2
4
5
0
7
0
0
GP
M
17
U
GT3
T
1
3
at_home
services
course
father
1
1
0
no
no
no
no
yes
no
yes
no
5
3
3
1
4
2
2
10
10
10
GP
M
17
R
LE3
T
1
1
other
services
course
mother
4
2
3
no
no
no
yes
yes
no
no
yes
5
3
5
1
5
5
0
5
8
7
GP
M
16
U
GT3
T
3
2
services
services
course
mother
2
1
1
no
yes
no
yes
no
no
no
no
4
5
2
1
1
2
16
12
11
12
GP
M
16
U
GT3
T
2
2
other
other
course
father
1
2
0
no
no
no
no
yes
no
yes
no
4
3
5
2
4
4
4
10
10
10
GP
F
16
U
GT3
T
4
2
health
services
home
father
1
2
0
no
no
yes
no
yes
yes
yes
yes
4
2
3
1
1
3
0
14
15
16
GP
F
16
U
GT3
T
2
2
other
other
home
mother
1
2
0
no
yes
yes
no
no
yes
yes
no
5
1
5
1
1
4
0
6
7
0
GP
F
16
U
GT3
T
4
4
health
health
reputation
mother
1
2
0
no
yes
yes
no
yes
yes
yes
yes
4
4
2
1
1
3
0
14
14
14
GP
M
16
U
GT3
T
3
4
other
other
course
father
3
1
2
no
yes
no
yes
no
yes
yes
no
3
4
5
2
4
2
0
6
5
0
GP
M
16
U
GT3
T
1
0
other
other
reputation
mother
2
2
0
no
yes
yes
yes
yes
yes
yes
yes
4
3
2
1
1
3
2
13
15
16
GP
M
17
U
LE3
T
4
4
teacher
other
reputation
mother
1
2
0
no
yes
yes
yes
yes
yes
yes
no
4
4
4
1
3
5
0
13
11
10
GP
F
16
U
GT3
T
1
3
at_home
services
home
mother
1
2
3
no
no
no
yes
no
yes
yes
yes
4
3
5
1
1
3
0
8
7
0
GP
F
16
U
LE3
T
3
3
other
other
reputation
mother
2
2
0
no
yes
yes
yes
yes
yes
yes
no
4
4
5
1
1
4
4
10
11
9
GP
M
17
U
LE3
T
4
3
teacher
other
course
mother
2
2
0
no
no
yes
yes
yes
yes
yes
no
4
4
4
4
4
4
4
10
9
9
GP
F
16
U
GT3
T
2
2
services
other
reputation
mother
2
2
0
no
no
yes
yes
no
yes
yes
no
3
4
4
1
4
5
2
13
13
11
GP
M
17
U
GT3
T
3
3
other
other
reputation
father
1
2
0
no
no
no
yes
no
yes
yes
no
4
3
4
1
4
4
4
6
5
6
GP
M
16
R
GT3
T
4
2
teacher
services
other
mother
1
1
0
no
yes
no
yes
yes
yes
yes
yes
4
3
3
3
4
3
10
10
8
9
GP
M
17
U
GT3
T
4
3
other
other
course
mother
1
2
0
no
yes
no
yes
yes
yes
yes
yes
5
2
3
1
1
2
4
10
10
11
GP
M
16
U
GT3
T
4
3
teacher
other
home
mother
1
2
0
no
yes
yes
yes
yes
yes
yes
no
3
4
3
2
3
3
10
9
8
8
GP
M
16
U
GT3
T
3
3
services
other
home
mother
1
2
0
no
no
yes
yes
yes
yes
yes
yes
4
2
3
1
2
3
2
12
13
12
GP
F
17
U
GT3
T
2
4
services
services
reputation
father
1
2
0
no
yes
no
yes
yes
yes
no
no
5
4
2
2
3
5
0
16
17
17
GP
F
17
U
LE3
T
3
3
other
other
reputation
mother
1
2
0
no
yes
no
yes
yes
yes
yes
yes
5
3
3
2
3
1
56
9
9
8
GP
F
16
U
GT3
T
3
2
other
other
reputation
mother
1
2
0
no
yes
yes
no
yes
yes
yes
no
1
2
2
1
2
1
14
12
13
12
GP
M
17
U
GT3
T
3
3
services
services
other
mother
1
2
0
no
yes
no
yes
yes
yes
yes
yes
4
3
4
2
3
4
12
12
12
11
GP
M
16
U
GT3
T
1
2
services
services
other
mother
1
1
0
no
yes
yes
yes
yes
yes
yes
yes
3
3
3
1
2
3
2
11
12
11
GP
M
16
U
LE3
T
2
1
other
other
course
mother
1
2
0
no
no
yes
yes
yes
yes
yes
yes
4
2
3
1
2
5
0
15
15
15
GP
F
17
U
GT3
A
3
3
health
other
reputation
mother
1
2
0
no
yes
no
no
no
yes
yes
yes
3
3
3
1
3
3
6
8
7
9
GP
M
17
R
GT3
T
1
2
at_home
other
home
mother
1
2
0
no
no
no
no
yes
yes
no
no
3
1
3
1
5
3
4
8
9
10
GP
F
16
U
GT3
T
2
3
services
services
course
mother
1
2
0
no
no
no
no
yes
yes
yes
no
4
3
3
1
1
2
10
11
12
13
GP
F
17
U
GT3
T
1
1
at_home
services
course
mother
1
2
0
no
no
no
yes
yes
yes
yes
no
5
3
3
1
1
3
0
8
8
9
GP
M
17
U
GT3
T
1
2
at_home
services
other
other
2
2
0
no
no
yes
yes
no
yes
yes
no
4
4
4
4
5
5
12
7
8
8
GP
M
16
R
GT3
T
3
3
services
services
reputation
mother
1
1
0
no
yes
no
yes
yes
yes
yes
no
4
3
2
3
4
5
8
8
9
10
GP
M
16
U
GT3
T
2
3
other
other
home
father
2
1
0
no
no
no
no
yes
yes
yes
no
5
3
3
1
1
3
0
13
14
14
GP
F
17
U
LE3
T
2
4
services
services
course
father
1
2
0
no
no
no
yes
yes
yes
yes
yes
4
3
2
1
1
5
0
14
15
15
GP
M
17
U
GT3
T
4
4
services
teacher
home
mother
1
1
0
no
no
no
no
yes
yes
yes
no
5
2
3
1
2
5
4
17
15
16
GP
M
16
R
LE3
T
3
3
teacher
other
home
father
3
1
0
no
yes
yes
yes
yes
yes
yes
no
3
3
4
3
5
3
8
9
9
10
GP
F
17
U
GT3
T
4
4
services
teacher
home
mother
2
1
1
no
yes
no
no
yes
yes
yes
no
4
2
4
2
3
2
24
18
18
18
GP
F
16
U
LE3
T
4
4
teacher
teacher
reputation
mother
1
2
0
no
yes
yes
no
yes
yes
yes
no
4
5
2
1
2
3
0
9
9
10