thov commited on
Commit
1c6ad85
1 Parent(s): 69c5a5a

add cat features

Browse files
Files changed (5) hide show
  1. app.py +3 -3
  2. datasets/.DS_Store +0 -0
  3. datasets/heart.csv +0 -304
  4. datasets/penguins.csv +345 -0
  5. utils.py +33 -3
app.py CHANGED
@@ -13,7 +13,7 @@ def default():
13
 
14
  with st.sidebar:
15
 
16
- def_csv = st.selectbox(label='Demo Datasets', options=['spotify.csv', 'heart.csv', 'titanic.csv', 'pokemon.csv'])
17
  def_csv = 'datasets/'+def_csv
18
 
19
  csv = st.file_uploader(label='or upload a CSV file to analyse')
@@ -22,12 +22,12 @@ with st.sidebar:
22
 
23
  corr_type = st.selectbox(label='Correlation Type', options=['kendall', 'pearson', 'spearman'], on_change=default)
24
 
25
- th = st.slider(label='Correlation Threshold', min_value=0., max_value=1., value=0.15, step=0.01, on_change=default)
26
 
27
  but = st.button("Display Correlation Graph", on_click=default)
28
 
29
  if st.session_state.default:
30
- graph_html = display_graph(csv_file='datasets/spotify.csv', threshold=0.15, corr_type='kendall')
31
  st.components.v1.html(graph_html, width=None, height=2000)
32
 
33
  if but:
 
13
 
14
  with st.sidebar:
15
 
16
+ def_csv = st.selectbox(label='Demo Datasets', options=['penguins.csv', 'spotify.csv', 'titanic.csv', 'pokemon.csv'])
17
  def_csv = 'datasets/'+def_csv
18
 
19
  csv = st.file_uploader(label='or upload a CSV file to analyse')
 
22
 
23
  corr_type = st.selectbox(label='Correlation Type', options=['kendall', 'pearson', 'spearman'], on_change=default)
24
 
25
+ th = st.slider(label='Correlation Threshold', min_value=0., max_value=1., value=0.3, step=0.01, on_change=default)
26
 
27
  but = st.button("Display Correlation Graph", on_click=default)
28
 
29
  if st.session_state.default:
30
+ graph_html = display_graph(csv_file='datasets/penguins.csv', threshold=0.3, corr_type='kendall')
31
  st.components.v1.html(graph_html, width=None, height=2000)
32
 
33
  if but:
datasets/.DS_Store ADDED
Binary file (6.15 kB). View file
 
datasets/heart.csv DELETED
@@ -1,304 +0,0 @@
1
- age,sex,cp,trtbps,chol,fbs,restecg,thalachh,exng,oldpeak,slp,caa,thall,output
2
- 63,1,3,145,233,1,0,150,0,2.3,0,0,1,1
3
- 37,1,2,130,250,0,1,187,0,3.5,0,0,2,1
4
- 41,0,1,130,204,0,0,172,0,1.4,2,0,2,1
5
- 56,1,1,120,236,0,1,178,0,0.8,2,0,2,1
6
- 57,0,0,120,354,0,1,163,1,0.6,2,0,2,1
7
- 57,1,0,140,192,0,1,148,0,0.4,1,0,1,1
8
- 56,0,1,140,294,0,0,153,0,1.3,1,0,2,1
9
- 44,1,1,120,263,0,1,173,0,0,2,0,3,1
10
- 52,1,2,172,199,1,1,162,0,0.5,2,0,3,1
11
- 57,1,2,150,168,0,1,174,0,1.6,2,0,2,1
12
- 54,1,0,140,239,0,1,160,0,1.2,2,0,2,1
13
- 48,0,2,130,275,0,1,139,0,0.2,2,0,2,1
14
- 49,1,1,130,266,0,1,171,0,0.6,2,0,2,1
15
- 64,1,3,110,211,0,0,144,1,1.8,1,0,2,1
16
- 58,0,3,150,283,1,0,162,0,1,2,0,2,1
17
- 50,0,2,120,219,0,1,158,0,1.6,1,0,2,1
18
- 58,0,2,120,340,0,1,172,0,0,2,0,2,1
19
- 66,0,3,150,226,0,1,114,0,2.6,0,0,2,1
20
- 43,1,0,150,247,0,1,171,0,1.5,2,0,2,1
21
- 69,0,3,140,239,0,1,151,0,1.8,2,2,2,1
22
- 59,1,0,135,234,0,1,161,0,0.5,1,0,3,1
23
- 44,1,2,130,233,0,1,179,1,0.4,2,0,2,1
24
- 42,1,0,140,226,0,1,178,0,0,2,0,2,1
25
- 61,1,2,150,243,1,1,137,1,1,1,0,2,1
26
- 40,1,3,140,199,0,1,178,1,1.4,2,0,3,1
27
- 71,0,1,160,302,0,1,162,0,0.4,2,2,2,1
28
- 59,1,2,150,212,1,1,157,0,1.6,2,0,2,1
29
- 51,1,2,110,175,0,1,123,0,0.6,2,0,2,1
30
- 65,0,2,140,417,1,0,157,0,0.8,2,1,2,1
31
- 53,1,2,130,197,1,0,152,0,1.2,0,0,2,1
32
- 41,0,1,105,198,0,1,168,0,0,2,1,2,1
33
- 65,1,0,120,177,0,1,140,0,0.4,2,0,3,1
34
- 44,1,1,130,219,0,0,188,0,0,2,0,2,1
35
- 54,1,2,125,273,0,0,152,0,0.5,0,1,2,1
36
- 51,1,3,125,213,0,0,125,1,1.4,2,1,2,1
37
- 46,0,2,142,177,0,0,160,1,1.4,0,0,2,1
38
- 54,0,2,135,304,1,1,170,0,0,2,0,2,1
39
- 54,1,2,150,232,0,0,165,0,1.6,2,0,3,1
40
- 65,0,2,155,269,0,1,148,0,0.8,2,0,2,1
41
- 65,0,2,160,360,0,0,151,0,0.8,2,0,2,1
42
- 51,0,2,140,308,0,0,142,0,1.5,2,1,2,1
43
- 48,1,1,130,245,0,0,180,0,0.2,1,0,2,1
44
- 45,1,0,104,208,0,0,148,1,3,1,0,2,1
45
- 53,0,0,130,264,0,0,143,0,0.4,1,0,2,1
46
- 39,1,2,140,321,0,0,182,0,0,2,0,2,1
47
- 52,1,1,120,325,0,1,172,0,0.2,2,0,2,1
48
- 44,1,2,140,235,0,0,180,0,0,2,0,2,1
49
- 47,1,2,138,257,0,0,156,0,0,2,0,2,1
50
- 53,0,2,128,216,0,0,115,0,0,2,0,0,1
51
- 53,0,0,138,234,0,0,160,0,0,2,0,2,1
52
- 51,0,2,130,256,0,0,149,0,0.5,2,0,2,1
53
- 66,1,0,120,302,0,0,151,0,0.4,1,0,2,1
54
- 62,1,2,130,231,0,1,146,0,1.8,1,3,3,1
55
- 44,0,2,108,141,0,1,175,0,0.6,1,0,2,1
56
- 63,0,2,135,252,0,0,172,0,0,2,0,2,1
57
- 52,1,1,134,201,0,1,158,0,0.8,2,1,2,1
58
- 48,1,0,122,222,0,0,186,0,0,2,0,2,1
59
- 45,1,0,115,260,0,0,185,0,0,2,0,2,1
60
- 34,1,3,118,182,0,0,174,0,0,2,0,2,1
61
- 57,0,0,128,303,0,0,159,0,0,2,1,2,1
62
- 71,0,2,110,265,1,0,130,0,0,2,1,2,1
63
- 54,1,1,108,309,0,1,156,0,0,2,0,3,1
64
- 52,1,3,118,186,0,0,190,0,0,1,0,1,1
65
- 41,1,1,135,203,0,1,132,0,0,1,0,1,1
66
- 58,1,2,140,211,1,0,165,0,0,2,0,2,1
67
- 35,0,0,138,183,0,1,182,0,1.4,2,0,2,1
68
- 51,1,2,100,222,0,1,143,1,1.2,1,0,2,1
69
- 45,0,1,130,234,0,0,175,0,0.6,1,0,2,1
70
- 44,1,1,120,220,0,1,170,0,0,2,0,2,1
71
- 62,0,0,124,209,0,1,163,0,0,2,0,2,1
72
- 54,1,2,120,258,0,0,147,0,0.4,1,0,3,1
73
- 51,1,2,94,227,0,1,154,1,0,2,1,3,1
74
- 29,1,1,130,204,0,0,202,0,0,2,0,2,1
75
- 51,1,0,140,261,0,0,186,1,0,2,0,2,1
76
- 43,0,2,122,213,0,1,165,0,0.2,1,0,2,1
77
- 55,0,1,135,250,0,0,161,0,1.4,1,0,2,1
78
- 51,1,2,125,245,1,0,166,0,2.4,1,0,2,1
79
- 59,1,1,140,221,0,1,164,1,0,2,0,2,1
80
- 52,1,1,128,205,1,1,184,0,0,2,0,2,1
81
- 58,1,2,105,240,0,0,154,1,0.6,1,0,3,1
82
- 41,1,2,112,250,0,1,179,0,0,2,0,2,1
83
- 45,1,1,128,308,0,0,170,0,0,2,0,2,1
84
- 60,0,2,102,318,0,1,160,0,0,2,1,2,1
85
- 52,1,3,152,298,1,1,178,0,1.2,1,0,3,1
86
- 42,0,0,102,265,0,0,122,0,0.6,1,0,2,1
87
- 67,0,2,115,564,0,0,160,0,1.6,1,0,3,1
88
- 68,1,2,118,277,0,1,151,0,1,2,1,3,1
89
- 46,1,1,101,197,1,1,156,0,0,2,0,3,1
90
- 54,0,2,110,214,0,1,158,0,1.6,1,0,2,1
91
- 58,0,0,100,248,0,0,122,0,1,1,0,2,1
92
- 48,1,2,124,255,1,1,175,0,0,2,2,2,1
93
- 57,1,0,132,207,0,1,168,1,0,2,0,3,1
94
- 52,1,2,138,223,0,1,169,0,0,2,4,2,1
95
- 54,0,1,132,288,1,0,159,1,0,2,1,2,1
96
- 45,0,1,112,160,0,1,138,0,0,1,0,2,1
97
- 53,1,0,142,226,0,0,111,1,0,2,0,3,1
98
- 62,0,0,140,394,0,0,157,0,1.2,1,0,2,1
99
- 52,1,0,108,233,1,1,147,0,0.1,2,3,3,1
100
- 43,1,2,130,315,0,1,162,0,1.9,2,1,2,1
101
- 53,1,2,130,246,1,0,173,0,0,2,3,2,1
102
- 42,1,3,148,244,0,0,178,0,0.8,2,2,2,1
103
- 59,1,3,178,270,0,0,145,0,4.2,0,0,3,1
104
- 63,0,1,140,195,0,1,179,0,0,2,2,2,1
105
- 42,1,2,120,240,1,1,194,0,0.8,0,0,3,1
106
- 50,1,2,129,196,0,1,163,0,0,2,0,2,1
107
- 68,0,2,120,211,0,0,115,0,1.5,1,0,2,1
108
- 69,1,3,160,234,1,0,131,0,0.1,1,1,2,1
109
- 45,0,0,138,236,0,0,152,1,0.2,1,0,2,1
110
- 50,0,1,120,244,0,1,162,0,1.1,2,0,2,1
111
- 50,0,0,110,254,0,0,159,0,0,2,0,2,1
112
- 64,0,0,180,325,0,1,154,1,0,2,0,2,1
113
- 57,1,2,150,126,1,1,173,0,0.2,2,1,3,1
114
- 64,0,2,140,313,0,1,133,0,0.2,2,0,3,1
115
- 43,1,0,110,211,0,1,161,0,0,2,0,3,1
116
- 55,1,1,130,262,0,1,155,0,0,2,0,2,1
117
- 37,0,2,120,215,0,1,170,0,0,2,0,2,1
118
- 41,1,2,130,214,0,0,168,0,2,1,0,2,1
119
- 56,1,3,120,193,0,0,162,0,1.9,1,0,3,1
120
- 46,0,1,105,204,0,1,172,0,0,2,0,2,1
121
- 46,0,0,138,243,0,0,152,1,0,1,0,2,1
122
- 64,0,0,130,303,0,1,122,0,2,1,2,2,1
123
- 59,1,0,138,271,0,0,182,0,0,2,0,2,1
124
- 41,0,2,112,268,0,0,172,1,0,2,0,2,1
125
- 54,0,2,108,267,0,0,167,0,0,2,0,2,1
126
- 39,0,2,94,199,0,1,179,0,0,2,0,2,1
127
- 34,0,1,118,210,0,1,192,0,0.7,2,0,2,1
128
- 47,1,0,112,204,0,1,143,0,0.1,2,0,2,1
129
- 67,0,2,152,277,0,1,172,0,0,2,1,2,1
130
- 52,0,2,136,196,0,0,169,0,0.1,1,0,2,1
131
- 74,0,1,120,269,0,0,121,1,0.2,2,1,2,1
132
- 54,0,2,160,201,0,1,163,0,0,2,1,2,1
133
- 49,0,1,134,271,0,1,162,0,0,1,0,2,1
134
- 42,1,1,120,295,0,1,162,0,0,2,0,2,1
135
- 41,1,1,110,235,0,1,153,0,0,2,0,2,1
136
- 41,0,1,126,306,0,1,163,0,0,2,0,2,1
137
- 49,0,0,130,269,0,1,163,0,0,2,0,2,1
138
- 60,0,2,120,178,1,1,96,0,0,2,0,2,1
139
- 62,1,1,128,208,1,0,140,0,0,2,0,2,1
140
- 57,1,0,110,201,0,1,126,1,1.5,1,0,1,1
141
- 64,1,0,128,263,0,1,105,1,0.2,1,1,3,1
142
- 51,0,2,120,295,0,0,157,0,0.6,2,0,2,1
143
- 43,1,0,115,303,0,1,181,0,1.2,1,0,2,1
144
- 42,0,2,120,209,0,1,173,0,0,1,0,2,1
145
- 67,0,0,106,223,0,1,142,0,0.3,2,2,2,1
146
- 76,0,2,140,197,0,2,116,0,1.1,1,0,2,1
147
- 70,1,1,156,245,0,0,143,0,0,2,0,2,1
148
- 44,0,2,118,242,0,1,149,0,0.3,1,1,2,1
149
- 60,0,3,150,240,0,1,171,0,0.9,2,0,2,1
150
- 44,1,2,120,226,0,1,169,0,0,2,0,2,1
151
- 42,1,2,130,180,0,1,150,0,0,2,0,2,1
152
- 66,1,0,160,228,0,0,138,0,2.3,2,0,1,1
153
- 71,0,0,112,149,0,1,125,0,1.6,1,0,2,1
154
- 64,1,3,170,227,0,0,155,0,0.6,1,0,3,1
155
- 66,0,2,146,278,0,0,152,0,0,1,1,2,1
156
- 39,0,2,138,220,0,1,152,0,0,1,0,2,1
157
- 58,0,0,130,197,0,1,131,0,0.6,1,0,2,1
158
- 47,1,2,130,253,0,1,179,0,0,2,0,2,1
159
- 35,1,1,122,192,0,1,174,0,0,2,0,2,1
160
- 58,1,1,125,220,0,1,144,0,0.4,1,4,3,1
161
- 56,1,1,130,221,0,0,163,0,0,2,0,3,1
162
- 56,1,1,120,240,0,1,169,0,0,0,0,2,1
163
- 55,0,1,132,342,0,1,166,0,1.2,2,0,2,1
164
- 41,1,1,120,157,0,1,182,0,0,2,0,2,1
165
- 38,1,2,138,175,0,1,173,0,0,2,4,2,1
166
- 38,1,2,138,175,0,1,173,0,0,2,4,2,1
167
- 67,1,0,160,286,0,0,108,1,1.5,1,3,2,0
168
- 67,1,0,120,229,0,0,129,1,2.6,1,2,3,0
169
- 62,0,0,140,268,0,0,160,0,3.6,0,2,2,0
170
- 63,1,0,130,254,0,0,147,0,1.4,1,1,3,0
171
- 53,1,0,140,203,1,0,155,1,3.1,0,0,3,0
172
- 56,1,2,130,256,1,0,142,1,0.6,1,1,1,0
173
- 48,1,1,110,229,0,1,168,0,1,0,0,3,0
174
- 58,1,1,120,284,0,0,160,0,1.8,1,0,2,0
175
- 58,1,2,132,224,0,0,173,0,3.2,2,2,3,0
176
- 60,1,0,130,206,0,0,132,1,2.4,1,2,3,0
177
- 40,1,0,110,167,0,0,114,1,2,1,0,3,0
178
- 60,1,0,117,230,1,1,160,1,1.4,2,2,3,0
179
- 64,1,2,140,335,0,1,158,0,0,2,0,2,0
180
- 43,1,0,120,177,0,0,120,1,2.5,1,0,3,0
181
- 57,1,0,150,276,0,0,112,1,0.6,1,1,1,0
182
- 55,1,0,132,353,0,1,132,1,1.2,1,1,3,0
183
- 65,0,0,150,225,0,0,114,0,1,1,3,3,0
184
- 61,0,0,130,330,0,0,169,0,0,2,0,2,0
185
- 58,1,2,112,230,0,0,165,0,2.5,1,1,3,0
186
- 50,1,0,150,243,0,0,128,0,2.6,1,0,3,0
187
- 44,1,0,112,290,0,0,153,0,0,2,1,2,0
188
- 60,1,0,130,253,0,1,144,1,1.4,2,1,3,0
189
- 54,1,0,124,266,0,0,109,1,2.2,1,1,3,0
190
- 50,1,2,140,233,0,1,163,0,0.6,1,1,3,0
191
- 41,1,0,110,172,0,0,158,0,0,2,0,3,0
192
- 51,0,0,130,305,0,1,142,1,1.2,1,0,3,0
193
- 58,1,0,128,216,0,0,131,1,2.2,1,3,3,0
194
- 54,1,0,120,188,0,1,113,0,1.4,1,1,3,0
195
- 60,1,0,145,282,0,0,142,1,2.8,1,2,3,0
196
- 60,1,2,140,185,0,0,155,0,3,1,0,2,0
197
- 59,1,0,170,326,0,0,140,1,3.4,0,0,3,0
198
- 46,1,2,150,231,0,1,147,0,3.6,1,0,2,0
199
- 67,1,0,125,254,1,1,163,0,0.2,1,2,3,0
200
- 62,1,0,120,267,0,1,99,1,1.8,1,2,3,0
201
- 65,1,0,110,248,0,0,158,0,0.6,2,2,1,0
202
- 44,1,0,110,197,0,0,177,0,0,2,1,2,0
203
- 60,1,0,125,258,0,0,141,1,2.8,1,1,3,0
204
- 58,1,0,150,270,0,0,111,1,0.8,2,0,3,0
205
- 68,1,2,180,274,1,0,150,1,1.6,1,0,3,0
206
- 62,0,0,160,164,0,0,145,0,6.2,0,3,3,0
207
- 52,1,0,128,255,0,1,161,1,0,2,1,3,0
208
- 59,1,0,110,239,0,0,142,1,1.2,1,1,3,0
209
- 60,0,0,150,258,0,0,157,0,2.6,1,2,3,0
210
- 49,1,2,120,188,0,1,139,0,2,1,3,3,0
211
- 59,1,0,140,177,0,1,162,1,0,2,1,3,0
212
- 57,1,2,128,229,0,0,150,0,0.4,1,1,3,0
213
- 61,1,0,120,260,0,1,140,1,3.6,1,1,3,0
214
- 39,1,0,118,219,0,1,140,0,1.2,1,0,3,0
215
- 61,0,0,145,307,0,0,146,1,1,1,0,3,0
216
- 56,1,0,125,249,1,0,144,1,1.2,1,1,2,0
217
- 43,0,0,132,341,1,0,136,1,3,1,0,3,0
218
- 62,0,2,130,263,0,1,97,0,1.2,1,1,3,0
219
- 63,1,0,130,330,1,0,132,1,1.8,2,3,3,0
220
- 65,1,0,135,254,0,0,127,0,2.8,1,1,3,0
221
- 48,1,0,130,256,1,0,150,1,0,2,2,3,0
222
- 63,0,0,150,407,0,0,154,0,4,1,3,3,0
223
- 55,1,0,140,217,0,1,111,1,5.6,0,0,3,0
224
- 65,1,3,138,282,1,0,174,0,1.4,1,1,2,0
225
- 56,0,0,200,288,1,0,133,1,4,0,2,3,0
226
- 54,1,0,110,239,0,1,126,1,2.8,1,1,3,0
227
- 70,1,0,145,174,0,1,125,1,2.6,0,0,3,0
228
- 62,1,1,120,281,0,0,103,0,1.4,1,1,3,0
229
- 35,1,0,120,198,0,1,130,1,1.6,1,0,3,0
230
- 59,1,3,170,288,0,0,159,0,0.2,1,0,3,0
231
- 64,1,2,125,309,0,1,131,1,1.8,1,0,3,0
232
- 47,1,2,108,243,0,1,152,0,0,2,0,2,0
233
- 57,1,0,165,289,1,0,124,0,1,1,3,3,0
234
- 55,1,0,160,289,0,0,145,1,0.8,1,1,3,0
235
- 64,1,0,120,246,0,0,96,1,2.2,0,1,2,0
236
- 70,1,0,130,322,0,0,109,0,2.4,1,3,2,0
237
- 51,1,0,140,299,0,1,173,1,1.6,2,0,3,0
238
- 58,1,0,125,300,0,0,171,0,0,2,2,3,0
239
- 60,1,0,140,293,0,0,170,0,1.2,1,2,3,0
240
- 77,1,0,125,304,0,0,162,1,0,2,3,2,0
241
- 35,1,0,126,282,0,0,156,1,0,2,0,3,0
242
- 70,1,2,160,269,0,1,112,1,2.9,1,1,3,0
243
- 59,0,0,174,249,0,1,143,1,0,1,0,2,0
244
- 64,1,0,145,212,0,0,132,0,2,1,2,1,0
245
- 57,1,0,152,274,0,1,88,1,1.2,1,1,3,0
246
- 56,1,0,132,184,0,0,105,1,2.1,1,1,1,0
247
- 48,1,0,124,274,0,0,166,0,0.5,1,0,3,0
248
- 56,0,0,134,409,0,0,150,1,1.9,1,2,3,0
249
- 66,1,1,160,246,0,1,120,1,0,1,3,1,0
250
- 54,1,1,192,283,0,0,195,0,0,2,1,3,0
251
- 69,1,2,140,254,0,0,146,0,2,1,3,3,0
252
- 51,1,0,140,298,0,1,122,1,4.2,1,3,3,0
253
- 43,1,0,132,247,1,0,143,1,0.1,1,4,3,0
254
- 62,0,0,138,294,1,1,106,0,1.9,1,3,2,0
255
- 67,1,0,100,299,0,0,125,1,0.9,1,2,2,0
256
- 59,1,3,160,273,0,0,125,0,0,2,0,2,0
257
- 45,1,0,142,309,0,0,147,1,0,1,3,3,0
258
- 58,1,0,128,259,0,0,130,1,3,1,2,3,0
259
- 50,1,0,144,200,0,0,126,1,0.9,1,0,3,0
260
- 62,0,0,150,244,0,1,154,1,1.4,1,0,2,0
261
- 38,1,3,120,231,0,1,182,1,3.8,1,0,3,0
262
- 66,0,0,178,228,1,1,165,1,1,1,2,3,0
263
- 52,1,0,112,230,0,1,160,0,0,2,1,2,0
264
- 53,1,0,123,282,0,1,95,1,2,1,2,3,0
265
- 63,0,0,108,269,0,1,169,1,1.8,1,2,2,0
266
- 54,1,0,110,206,0,0,108,1,0,1,1,2,0
267
- 66,1,0,112,212,0,0,132,1,0.1,2,1,2,0
268
- 55,0,0,180,327,0,2,117,1,3.4,1,0,2,0
269
- 49,1,2,118,149,0,0,126,0,0.8,2,3,2,0
270
- 54,1,0,122,286,0,0,116,1,3.2,1,2,2,0
271
- 56,1,0,130,283,1,0,103,1,1.6,0,0,3,0
272
- 46,1,0,120,249,0,0,144,0,0.8,2,0,3,0
273
- 61,1,3,134,234,0,1,145,0,2.6,1,2,2,0
274
- 67,1,0,120,237,0,1,71,0,1,1,0,2,0
275
- 58,1,0,100,234,0,1,156,0,0.1,2,1,3,0
276
- 47,1,0,110,275,0,0,118,1,1,1,1,2,0
277
- 52,1,0,125,212,0,1,168,0,1,2,2,3,0
278
- 58,1,0,146,218,0,1,105,0,2,1,1,3,0
279
- 57,1,1,124,261,0,1,141,0,0.3,2,0,3,0
280
- 58,0,1,136,319,1,0,152,0,0,2,2,2,0
281
- 61,1,0,138,166,0,0,125,1,3.6,1,1,2,0
282
- 42,1,0,136,315,0,1,125,1,1.8,1,0,1,0
283
- 52,1,0,128,204,1,1,156,1,1,1,0,0,0
284
- 59,1,2,126,218,1,1,134,0,2.2,1,1,1,0
285
- 40,1,0,152,223,0,1,181,0,0,2,0,3,0
286
- 61,1,0,140,207,0,0,138,1,1.9,2,1,3,0
287
- 46,1,0,140,311,0,1,120,1,1.8,1,2,3,0
288
- 59,1,3,134,204,0,1,162,0,0.8,2,2,2,0
289
- 57,1,1,154,232,0,0,164,0,0,2,1,2,0
290
- 57,1,0,110,335,0,1,143,1,3,1,1,3,0
291
- 55,0,0,128,205,0,2,130,1,2,1,1,3,0
292
- 61,1,0,148,203,0,1,161,0,0,2,1,3,0
293
- 58,1,0,114,318,0,2,140,0,4.4,0,3,1,0
294
- 58,0,0,170,225,1,0,146,1,2.8,1,2,1,0
295
- 67,1,2,152,212,0,0,150,0,0.8,1,0,3,0
296
- 44,1,0,120,169,0,1,144,1,2.8,0,0,1,0
297
- 63,1,0,140,187,0,0,144,1,4,2,2,3,0
298
- 63,0,0,124,197,0,1,136,1,0,1,0,2,0
299
- 59,1,0,164,176,1,0,90,0,1,1,2,1,0
300
- 57,0,0,140,241,0,1,123,1,0.2,1,0,3,0
301
- 45,1,3,110,264,0,1,132,0,1.2,1,0,3,0
302
- 68,1,0,144,193,1,1,141,0,3.4,1,2,3,0
303
- 57,1,0,130,131,0,1,115,1,1.2,1,1,3,0
304
- 57,0,1,130,236,0,0,174,0,0,1,1,2,0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
datasets/penguins.csv ADDED
@@ -0,0 +1,345 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ species,island,culmen_length_mm,culmen_depth_mm,flipper_length_mm,body_mass_g,sex
2
+ Adelie,Torgersen,39.1,18.7,181,3750,MALE
3
+ Adelie,Torgersen,39.5,17.4,186,3800,FEMALE
4
+ Adelie,Torgersen,40.3,18,195,3250,FEMALE
5
+ Adelie,Torgersen,NA,NA,NA,NA,NA
6
+ Adelie,Torgersen,36.7,19.3,193,3450,FEMALE
7
+ Adelie,Torgersen,39.3,20.6,190,3650,MALE
8
+ Adelie,Torgersen,38.9,17.8,181,3625,FEMALE
9
+ Adelie,Torgersen,39.2,19.6,195,4675,MALE
10
+ Adelie,Torgersen,34.1,18.1,193,3475,NA
11
+ Adelie,Torgersen,42,20.2,190,4250,NA
12
+ Adelie,Torgersen,37.8,17.1,186,3300,NA
13
+ Adelie,Torgersen,37.8,17.3,180,3700,NA
14
+ Adelie,Torgersen,41.1,17.6,182,3200,FEMALE
15
+ Adelie,Torgersen,38.6,21.2,191,3800,MALE
16
+ Adelie,Torgersen,34.6,21.1,198,4400,MALE
17
+ Adelie,Torgersen,36.6,17.8,185,3700,FEMALE
18
+ Adelie,Torgersen,38.7,19,195,3450,FEMALE
19
+ Adelie,Torgersen,42.5,20.7,197,4500,MALE
20
+ Adelie,Torgersen,34.4,18.4,184,3325,FEMALE
21
+ Adelie,Torgersen,46,21.5,194,4200,MALE
22
+ Adelie,Biscoe,37.8,18.3,174,3400,FEMALE
23
+ Adelie,Biscoe,37.7,18.7,180,3600,MALE
24
+ Adelie,Biscoe,35.9,19.2,189,3800,FEMALE
25
+ Adelie,Biscoe,38.2,18.1,185,3950,MALE
26
+ Adelie,Biscoe,38.8,17.2,180,3800,MALE
27
+ Adelie,Biscoe,35.3,18.9,187,3800,FEMALE
28
+ Adelie,Biscoe,40.6,18.6,183,3550,MALE
29
+ Adelie,Biscoe,40.5,17.9,187,3200,FEMALE
30
+ Adelie,Biscoe,37.9,18.6,172,3150,FEMALE
31
+ Adelie,Biscoe,40.5,18.9,180,3950,MALE
32
+ Adelie,Dream,39.5,16.7,178,3250,FEMALE
33
+ Adelie,Dream,37.2,18.1,178,3900,MALE
34
+ Adelie,Dream,39.5,17.8,188,3300,FEMALE
35
+ Adelie,Dream,40.9,18.9,184,3900,MALE
36
+ Adelie,Dream,36.4,17,195,3325,FEMALE
37
+ Adelie,Dream,39.2,21.1,196,4150,MALE
38
+ Adelie,Dream,38.8,20,190,3950,MALE
39
+ Adelie,Dream,42.2,18.5,180,3550,FEMALE
40
+ Adelie,Dream,37.6,19.3,181,3300,FEMALE
41
+ Adelie,Dream,39.8,19.1,184,4650,MALE
42
+ Adelie,Dream,36.5,18,182,3150,FEMALE
43
+ Adelie,Dream,40.8,18.4,195,3900,MALE
44
+ Adelie,Dream,36,18.5,186,3100,FEMALE
45
+ Adelie,Dream,44.1,19.7,196,4400,MALE
46
+ Adelie,Dream,37,16.9,185,3000,FEMALE
47
+ Adelie,Dream,39.6,18.8,190,4600,MALE
48
+ Adelie,Dream,41.1,19,182,3425,MALE
49
+ Adelie,Dream,37.5,18.9,179,2975,NA
50
+ Adelie,Dream,36,17.9,190,3450,FEMALE
51
+ Adelie,Dream,42.3,21.2,191,4150,MALE
52
+ Adelie,Biscoe,39.6,17.7,186,3500,FEMALE
53
+ Adelie,Biscoe,40.1,18.9,188,4300,MALE
54
+ Adelie,Biscoe,35,17.9,190,3450,FEMALE
55
+ Adelie,Biscoe,42,19.5,200,4050,MALE
56
+ Adelie,Biscoe,34.5,18.1,187,2900,FEMALE
57
+ Adelie,Biscoe,41.4,18.6,191,3700,MALE
58
+ Adelie,Biscoe,39,17.5,186,3550,FEMALE
59
+ Adelie,Biscoe,40.6,18.8,193,3800,MALE
60
+ Adelie,Biscoe,36.5,16.6,181,2850,FEMALE
61
+ Adelie,Biscoe,37.6,19.1,194,3750,MALE
62
+ Adelie,Biscoe,35.7,16.9,185,3150,FEMALE
63
+ Adelie,Biscoe,41.3,21.1,195,4400,MALE
64
+ Adelie,Biscoe,37.6,17,185,3600,FEMALE
65
+ Adelie,Biscoe,41.1,18.2,192,4050,MALE
66
+ Adelie,Biscoe,36.4,17.1,184,2850,FEMALE
67
+ Adelie,Biscoe,41.6,18,192,3950,MALE
68
+ Adelie,Biscoe,35.5,16.2,195,3350,FEMALE
69
+ Adelie,Biscoe,41.1,19.1,188,4100,MALE
70
+ Adelie,Torgersen,35.9,16.6,190,3050,FEMALE
71
+ Adelie,Torgersen,41.8,19.4,198,4450,MALE
72
+ Adelie,Torgersen,33.5,19,190,3600,FEMALE
73
+ Adelie,Torgersen,39.7,18.4,190,3900,MALE
74
+ Adelie,Torgersen,39.6,17.2,196,3550,FEMALE
75
+ Adelie,Torgersen,45.8,18.9,197,4150,MALE
76
+ Adelie,Torgersen,35.5,17.5,190,3700,FEMALE
77
+ Adelie,Torgersen,42.8,18.5,195,4250,MALE
78
+ Adelie,Torgersen,40.9,16.8,191,3700,FEMALE
79
+ Adelie,Torgersen,37.2,19.4,184,3900,MALE
80
+ Adelie,Torgersen,36.2,16.1,187,3550,FEMALE
81
+ Adelie,Torgersen,42.1,19.1,195,4000,MALE
82
+ Adelie,Torgersen,34.6,17.2,189,3200,FEMALE
83
+ Adelie,Torgersen,42.9,17.6,196,4700,MALE
84
+ Adelie,Torgersen,36.7,18.8,187,3800,FEMALE
85
+ Adelie,Torgersen,35.1,19.4,193,4200,MALE
86
+ Adelie,Dream,37.3,17.8,191,3350,FEMALE
87
+ Adelie,Dream,41.3,20.3,194,3550,MALE
88
+ Adelie,Dream,36.3,19.5,190,3800,MALE
89
+ Adelie,Dream,36.9,18.6,189,3500,FEMALE
90
+ Adelie,Dream,38.3,19.2,189,3950,MALE
91
+ Adelie,Dream,38.9,18.8,190,3600,FEMALE
92
+ Adelie,Dream,35.7,18,202,3550,FEMALE
93
+ Adelie,Dream,41.1,18.1,205,4300,MALE
94
+ Adelie,Dream,34,17.1,185,3400,FEMALE
95
+ Adelie,Dream,39.6,18.1,186,4450,MALE
96
+ Adelie,Dream,36.2,17.3,187,3300,FEMALE
97
+ Adelie,Dream,40.8,18.9,208,4300,MALE
98
+ Adelie,Dream,38.1,18.6,190,3700,FEMALE
99
+ Adelie,Dream,40.3,18.5,196,4350,MALE
100
+ Adelie,Dream,33.1,16.1,178,2900,FEMALE
101
+ Adelie,Dream,43.2,18.5,192,4100,MALE
102
+ Adelie,Biscoe,35,17.9,192,3725,FEMALE
103
+ Adelie,Biscoe,41,20,203,4725,MALE
104
+ Adelie,Biscoe,37.7,16,183,3075,FEMALE
105
+ Adelie,Biscoe,37.8,20,190,4250,MALE
106
+ Adelie,Biscoe,37.9,18.6,193,2925,FEMALE
107
+ Adelie,Biscoe,39.7,18.9,184,3550,MALE
108
+ Adelie,Biscoe,38.6,17.2,199,3750,FEMALE
109
+ Adelie,Biscoe,38.2,20,190,3900,MALE
110
+ Adelie,Biscoe,38.1,17,181,3175,FEMALE
111
+ Adelie,Biscoe,43.2,19,197,4775,MALE
112
+ Adelie,Biscoe,38.1,16.5,198,3825,FEMALE
113
+ Adelie,Biscoe,45.6,20.3,191,4600,MALE
114
+ Adelie,Biscoe,39.7,17.7,193,3200,FEMALE
115
+ Adelie,Biscoe,42.2,19.5,197,4275,MALE
116
+ Adelie,Biscoe,39.6,20.7,191,3900,FEMALE
117
+ Adelie,Biscoe,42.7,18.3,196,4075,MALE
118
+ Adelie,Torgersen,38.6,17,188,2900,FEMALE
119
+ Adelie,Torgersen,37.3,20.5,199,3775,MALE
120
+ Adelie,Torgersen,35.7,17,189,3350,FEMALE
121
+ Adelie,Torgersen,41.1,18.6,189,3325,MALE
122
+ Adelie,Torgersen,36.2,17.2,187,3150,FEMALE
123
+ Adelie,Torgersen,37.7,19.8,198,3500,MALE
124
+ Adelie,Torgersen,40.2,17,176,3450,FEMALE
125
+ Adelie,Torgersen,41.4,18.5,202,3875,MALE
126
+ Adelie,Torgersen,35.2,15.9,186,3050,FEMALE
127
+ Adelie,Torgersen,40.6,19,199,4000,MALE
128
+ Adelie,Torgersen,38.8,17.6,191,3275,FEMALE
129
+ Adelie,Torgersen,41.5,18.3,195,4300,MALE
130
+ Adelie,Torgersen,39,17.1,191,3050,FEMALE
131
+ Adelie,Torgersen,44.1,18,210,4000,MALE
132
+ Adelie,Torgersen,38.5,17.9,190,3325,FEMALE
133
+ Adelie,Torgersen,43.1,19.2,197,3500,MALE
134
+ Adelie,Dream,36.8,18.5,193,3500,FEMALE
135
+ Adelie,Dream,37.5,18.5,199,4475,MALE
136
+ Adelie,Dream,38.1,17.6,187,3425,FEMALE
137
+ Adelie,Dream,41.1,17.5,190,3900,MALE
138
+ Adelie,Dream,35.6,17.5,191,3175,FEMALE
139
+ Adelie,Dream,40.2,20.1,200,3975,MALE
140
+ Adelie,Dream,37,16.5,185,3400,FEMALE
141
+ Adelie,Dream,39.7,17.9,193,4250,MALE
142
+ Adelie,Dream,40.2,17.1,193,3400,FEMALE
143
+ Adelie,Dream,40.6,17.2,187,3475,MALE
144
+ Adelie,Dream,32.1,15.5,188,3050,FEMALE
145
+ Adelie,Dream,40.7,17,190,3725,MALE
146
+ Adelie,Dream,37.3,16.8,192,3000,FEMALE
147
+ Adelie,Dream,39,18.7,185,3650,MALE
148
+ Adelie,Dream,39.2,18.6,190,4250,MALE
149
+ Adelie,Dream,36.6,18.4,184,3475,FEMALE
150
+ Adelie,Dream,36,17.8,195,3450,FEMALE
151
+ Adelie,Dream,37.8,18.1,193,3750,MALE
152
+ Adelie,Dream,36,17.1,187,3700,FEMALE
153
+ Adelie,Dream,41.5,18.5,201,4000,MALE
154
+ Chinstrap,Dream,46.5,17.9,192,3500,FEMALE
155
+ Chinstrap,Dream,50,19.5,196,3900,MALE
156
+ Chinstrap,Dream,51.3,19.2,193,3650,MALE
157
+ Chinstrap,Dream,45.4,18.7,188,3525,FEMALE
158
+ Chinstrap,Dream,52.7,19.8,197,3725,MALE
159
+ Chinstrap,Dream,45.2,17.8,198,3950,FEMALE
160
+ Chinstrap,Dream,46.1,18.2,178,3250,FEMALE
161
+ Chinstrap,Dream,51.3,18.2,197,3750,MALE
162
+ Chinstrap,Dream,46,18.9,195,4150,FEMALE
163
+ Chinstrap,Dream,51.3,19.9,198,3700,MALE
164
+ Chinstrap,Dream,46.6,17.8,193,3800,FEMALE
165
+ Chinstrap,Dream,51.7,20.3,194,3775,MALE
166
+ Chinstrap,Dream,47,17.3,185,3700,FEMALE
167
+ Chinstrap,Dream,52,18.1,201,4050,MALE
168
+ Chinstrap,Dream,45.9,17.1,190,3575,FEMALE
169
+ Chinstrap,Dream,50.5,19.6,201,4050,MALE
170
+ Chinstrap,Dream,50.3,20,197,3300,MALE
171
+ Chinstrap,Dream,58,17.8,181,3700,FEMALE
172
+ Chinstrap,Dream,46.4,18.6,190,3450,FEMALE
173
+ Chinstrap,Dream,49.2,18.2,195,4400,MALE
174
+ Chinstrap,Dream,42.4,17.3,181,3600,FEMALE
175
+ Chinstrap,Dream,48.5,17.5,191,3400,MALE
176
+ Chinstrap,Dream,43.2,16.6,187,2900,FEMALE
177
+ Chinstrap,Dream,50.6,19.4,193,3800,MALE
178
+ Chinstrap,Dream,46.7,17.9,195,3300,FEMALE
179
+ Chinstrap,Dream,52,19,197,4150,MALE
180
+ Chinstrap,Dream,50.5,18.4,200,3400,FEMALE
181
+ Chinstrap,Dream,49.5,19,200,3800,MALE
182
+ Chinstrap,Dream,46.4,17.8,191,3700,FEMALE
183
+ Chinstrap,Dream,52.8,20,205,4550,MALE
184
+ Chinstrap,Dream,40.9,16.6,187,3200,FEMALE
185
+ Chinstrap,Dream,54.2,20.8,201,4300,MALE
186
+ Chinstrap,Dream,42.5,16.7,187,3350,FEMALE
187
+ Chinstrap,Dream,51,18.8,203,4100,MALE
188
+ Chinstrap,Dream,49.7,18.6,195,3600,MALE
189
+ Chinstrap,Dream,47.5,16.8,199,3900,FEMALE
190
+ Chinstrap,Dream,47.6,18.3,195,3850,FEMALE
191
+ Chinstrap,Dream,52,20.7,210,4800,MALE
192
+ Chinstrap,Dream,46.9,16.6,192,2700,FEMALE
193
+ Chinstrap,Dream,53.5,19.9,205,4500,MALE
194
+ Chinstrap,Dream,49,19.5,210,3950,MALE
195
+ Chinstrap,Dream,46.2,17.5,187,3650,FEMALE
196
+ Chinstrap,Dream,50.9,19.1,196,3550,MALE
197
+ Chinstrap,Dream,45.5,17,196,3500,FEMALE
198
+ Chinstrap,Dream,50.9,17.9,196,3675,FEMALE
199
+ Chinstrap,Dream,50.8,18.5,201,4450,MALE
200
+ Chinstrap,Dream,50.1,17.9,190,3400,FEMALE
201
+ Chinstrap,Dream,49,19.6,212,4300,MALE
202
+ Chinstrap,Dream,51.5,18.7,187,3250,MALE
203
+ Chinstrap,Dream,49.8,17.3,198,3675,FEMALE
204
+ Chinstrap,Dream,48.1,16.4,199,3325,FEMALE
205
+ Chinstrap,Dream,51.4,19,201,3950,MALE
206
+ Chinstrap,Dream,45.7,17.3,193,3600,FEMALE
207
+ Chinstrap,Dream,50.7,19.7,203,4050,MALE
208
+ Chinstrap,Dream,42.5,17.3,187,3350,FEMALE
209
+ Chinstrap,Dream,52.2,18.8,197,3450,MALE
210
+ Chinstrap,Dream,45.2,16.6,191,3250,FEMALE
211
+ Chinstrap,Dream,49.3,19.9,203,4050,MALE
212
+ Chinstrap,Dream,50.2,18.8,202,3800,MALE
213
+ Chinstrap,Dream,45.6,19.4,194,3525,FEMALE
214
+ Chinstrap,Dream,51.9,19.5,206,3950,MALE
215
+ Chinstrap,Dream,46.8,16.5,189,3650,FEMALE
216
+ Chinstrap,Dream,45.7,17,195,3650,FEMALE
217
+ Chinstrap,Dream,55.8,19.8,207,4000,MALE
218
+ Chinstrap,Dream,43.5,18.1,202,3400,FEMALE
219
+ Chinstrap,Dream,49.6,18.2,193,3775,MALE
220
+ Chinstrap,Dream,50.8,19,210,4100,MALE
221
+ Chinstrap,Dream,50.2,18.7,198,3775,FEMALE
222
+ Gentoo,Biscoe,46.1,13.2,211,4500,FEMALE
223
+ Gentoo,Biscoe,50,16.3,230,5700,MALE
224
+ Gentoo,Biscoe,48.7,14.1,210,4450,FEMALE
225
+ Gentoo,Biscoe,50,15.2,218,5700,MALE
226
+ Gentoo,Biscoe,47.6,14.5,215,5400,MALE
227
+ Gentoo,Biscoe,46.5,13.5,210,4550,FEMALE
228
+ Gentoo,Biscoe,45.4,14.6,211,4800,FEMALE
229
+ Gentoo,Biscoe,46.7,15.3,219,5200,MALE
230
+ Gentoo,Biscoe,43.3,13.4,209,4400,FEMALE
231
+ Gentoo,Biscoe,46.8,15.4,215,5150,MALE
232
+ Gentoo,Biscoe,40.9,13.7,214,4650,FEMALE
233
+ Gentoo,Biscoe,49,16.1,216,5550,MALE
234
+ Gentoo,Biscoe,45.5,13.7,214,4650,FEMALE
235
+ Gentoo,Biscoe,48.4,14.6,213,5850,MALE
236
+ Gentoo,Biscoe,45.8,14.6,210,4200,FEMALE
237
+ Gentoo,Biscoe,49.3,15.7,217,5850,MALE
238
+ Gentoo,Biscoe,42,13.5,210,4150,FEMALE
239
+ Gentoo,Biscoe,49.2,15.2,221,6300,MALE
240
+ Gentoo,Biscoe,46.2,14.5,209,4800,FEMALE
241
+ Gentoo,Biscoe,48.7,15.1,222,5350,MALE
242
+ Gentoo,Biscoe,50.2,14.3,218,5700,MALE
243
+ Gentoo,Biscoe,45.1,14.5,215,5000,FEMALE
244
+ Gentoo,Biscoe,46.5,14.5,213,4400,FEMALE
245
+ Gentoo,Biscoe,46.3,15.8,215,5050,MALE
246
+ Gentoo,Biscoe,42.9,13.1,215,5000,FEMALE
247
+ Gentoo,Biscoe,46.1,15.1,215,5100,MALE
248
+ Gentoo,Biscoe,44.5,14.3,216,4100,NA
249
+ Gentoo,Biscoe,47.8,15,215,5650,MALE
250
+ Gentoo,Biscoe,48.2,14.3,210,4600,FEMALE
251
+ Gentoo,Biscoe,50,15.3,220,5550,MALE
252
+ Gentoo,Biscoe,47.3,15.3,222,5250,MALE
253
+ Gentoo,Biscoe,42.8,14.2,209,4700,FEMALE
254
+ Gentoo,Biscoe,45.1,14.5,207,5050,FEMALE
255
+ Gentoo,Biscoe,59.6,17,230,6050,MALE
256
+ Gentoo,Biscoe,49.1,14.8,220,5150,FEMALE
257
+ Gentoo,Biscoe,48.4,16.3,220,5400,MALE
258
+ Gentoo,Biscoe,42.6,13.7,213,4950,FEMALE
259
+ Gentoo,Biscoe,44.4,17.3,219,5250,MALE
260
+ Gentoo,Biscoe,44,13.6,208,4350,FEMALE
261
+ Gentoo,Biscoe,48.7,15.7,208,5350,MALE
262
+ Gentoo,Biscoe,42.7,13.7,208,3950,FEMALE
263
+ Gentoo,Biscoe,49.6,16,225,5700,MALE
264
+ Gentoo,Biscoe,45.3,13.7,210,4300,FEMALE
265
+ Gentoo,Biscoe,49.6,15,216,4750,MALE
266
+ Gentoo,Biscoe,50.5,15.9,222,5550,MALE
267
+ Gentoo,Biscoe,43.6,13.9,217,4900,FEMALE
268
+ Gentoo,Biscoe,45.5,13.9,210,4200,FEMALE
269
+ Gentoo,Biscoe,50.5,15.9,225,5400,MALE
270
+ Gentoo,Biscoe,44.9,13.3,213,5100,FEMALE
271
+ Gentoo,Biscoe,45.2,15.8,215,5300,MALE
272
+ Gentoo,Biscoe,46.6,14.2,210,4850,FEMALE
273
+ Gentoo,Biscoe,48.5,14.1,220,5300,MALE
274
+ Gentoo,Biscoe,45.1,14.4,210,4400,FEMALE
275
+ Gentoo,Biscoe,50.1,15,225,5000,MALE
276
+ Gentoo,Biscoe,46.5,14.4,217,4900,FEMALE
277
+ Gentoo,Biscoe,45,15.4,220,5050,MALE
278
+ Gentoo,Biscoe,43.8,13.9,208,4300,FEMALE
279
+ Gentoo,Biscoe,45.5,15,220,5000,MALE
280
+ Gentoo,Biscoe,43.2,14.5,208,4450,FEMALE
281
+ Gentoo,Biscoe,50.4,15.3,224,5550,MALE
282
+ Gentoo,Biscoe,45.3,13.8,208,4200,FEMALE
283
+ Gentoo,Biscoe,46.2,14.9,221,5300,MALE
284
+ Gentoo,Biscoe,45.7,13.9,214,4400,FEMALE
285
+ Gentoo,Biscoe,54.3,15.7,231,5650,MALE
286
+ Gentoo,Biscoe,45.8,14.2,219,4700,FEMALE
287
+ Gentoo,Biscoe,49.8,16.8,230,5700,MALE
288
+ Gentoo,Biscoe,46.2,14.4,214,4650,NA
289
+ Gentoo,Biscoe,49.5,16.2,229,5800,MALE
290
+ Gentoo,Biscoe,43.5,14.2,220,4700,FEMALE
291
+ Gentoo,Biscoe,50.7,15,223,5550,MALE
292
+ Gentoo,Biscoe,47.7,15,216,4750,FEMALE
293
+ Gentoo,Biscoe,46.4,15.6,221,5000,MALE
294
+ Gentoo,Biscoe,48.2,15.6,221,5100,MALE
295
+ Gentoo,Biscoe,46.5,14.8,217,5200,FEMALE
296
+ Gentoo,Biscoe,46.4,15,216,4700,FEMALE
297
+ Gentoo,Biscoe,48.6,16,230,5800,MALE
298
+ Gentoo,Biscoe,47.5,14.2,209,4600,FEMALE
299
+ Gentoo,Biscoe,51.1,16.3,220,6000,MALE
300
+ Gentoo,Biscoe,45.2,13.8,215,4750,FEMALE
301
+ Gentoo,Biscoe,45.2,16.4,223,5950,MALE
302
+ Gentoo,Biscoe,49.1,14.5,212,4625,FEMALE
303
+ Gentoo,Biscoe,52.5,15.6,221,5450,MALE
304
+ Gentoo,Biscoe,47.4,14.6,212,4725,FEMALE
305
+ Gentoo,Biscoe,50,15.9,224,5350,MALE
306
+ Gentoo,Biscoe,44.9,13.8,212,4750,FEMALE
307
+ Gentoo,Biscoe,50.8,17.3,228,5600,MALE
308
+ Gentoo,Biscoe,43.4,14.4,218,4600,FEMALE
309
+ Gentoo,Biscoe,51.3,14.2,218,5300,MALE
310
+ Gentoo,Biscoe,47.5,14,212,4875,FEMALE
311
+ Gentoo,Biscoe,52.1,17,230,5550,MALE
312
+ Gentoo,Biscoe,47.5,15,218,4950,FEMALE
313
+ Gentoo,Biscoe,52.2,17.1,228,5400,MALE
314
+ Gentoo,Biscoe,45.5,14.5,212,4750,FEMALE
315
+ Gentoo,Biscoe,49.5,16.1,224,5650,MALE
316
+ Gentoo,Biscoe,44.5,14.7,214,4850,FEMALE
317
+ Gentoo,Biscoe,50.8,15.7,226,5200,MALE
318
+ Gentoo,Biscoe,49.4,15.8,216,4925,MALE
319
+ Gentoo,Biscoe,46.9,14.6,222,4875,FEMALE
320
+ Gentoo,Biscoe,48.4,14.4,203,4625,FEMALE
321
+ Gentoo,Biscoe,51.1,16.5,225,5250,MALE
322
+ Gentoo,Biscoe,48.5,15,219,4850,FEMALE
323
+ Gentoo,Biscoe,55.9,17,228,5600,MALE
324
+ Gentoo,Biscoe,47.2,15.5,215,4975,FEMALE
325
+ Gentoo,Biscoe,49.1,15,228,5500,MALE
326
+ Gentoo,Biscoe,47.3,13.8,216,4725,NA
327
+ Gentoo,Biscoe,46.8,16.1,215,5500,MALE
328
+ Gentoo,Biscoe,41.7,14.7,210,4700,FEMALE
329
+ Gentoo,Biscoe,53.4,15.8,219,5500,MALE
330
+ Gentoo,Biscoe,43.3,14,208,4575,FEMALE
331
+ Gentoo,Biscoe,48.1,15.1,209,5500,MALE
332
+ Gentoo,Biscoe,50.5,15.2,216,5000,FEMALE
333
+ Gentoo,Biscoe,49.8,15.9,229,5950,MALE
334
+ Gentoo,Biscoe,43.5,15.2,213,4650,FEMALE
335
+ Gentoo,Biscoe,51.5,16.3,230,5500,MALE
336
+ Gentoo,Biscoe,46.2,14.1,217,4375,FEMALE
337
+ Gentoo,Biscoe,55.1,16,230,5850,MALE
338
+ Gentoo,Biscoe,44.5,15.7,217,4875,.
339
+ Gentoo,Biscoe,48.8,16.2,222,6000,MALE
340
+ Gentoo,Biscoe,47.2,13.7,214,4925,FEMALE
341
+ Gentoo,Biscoe,NA,NA,NA,NA,NA
342
+ Gentoo,Biscoe,46.8,14.3,215,4850,FEMALE
343
+ Gentoo,Biscoe,50.4,15.7,222,5750,MALE
344
+ Gentoo,Biscoe,45.2,14.8,212,5200,FEMALE
345
+ Gentoo,Biscoe,49.9,16.1,213,5400,MALE
utils.py CHANGED
@@ -4,15 +4,45 @@ import matplotlib as mpl
4
  from matplotlib import cm
5
  import gravis as gv
6
  import networkx as nx
 
 
 
 
7
 
8
 
 
 
 
9
  def clean_csv_file(csv_file):
 
10
  df = pd.read_csv(csv_file)
11
 
12
- df.dropna(inplace=True)
13
- df.drop_duplicates(inplace=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
- return df
16
 
17
 
18
  def build_graph(csv_file, *, threshold, corr_type):
 
4
  from matplotlib import cm
5
  import gravis as gv
6
  import networkx as nx
7
+ from sklearn.compose import ColumnTransformer
8
+ from sklearn.pipeline import Pipeline
9
+ from sklearn.impute import SimpleImputer
10
+ from sklearn.preprocessing import StandardScaler, OneHotEncoder
11
 
12
 
13
+ def get_only_features_names(name):
14
+ return name[5:]
15
+
16
  def clean_csv_file(csv_file):
17
+
18
  df = pd.read_csv(csv_file)
19
 
20
+ num_cols = df.select_dtypes(include=['float64', 'int64']).columns
21
+ cat_cols = df.select_dtypes(include=['object']).columns
22
+
23
+ numeric_transformer = Pipeline(steps=[
24
+ ('imputer', SimpleImputer(strategy='mean')),
25
+ ('scaler', StandardScaler())
26
+ ])
27
+
28
+ categorical_transformer = Pipeline(steps=[
29
+ ('imputer', SimpleImputer(strategy='most_frequent')),
30
+ ('onehot', OneHotEncoder(handle_unknown='ignore'))
31
+ ])
32
+
33
+ preprocessor = ColumnTransformer(
34
+ transformers=[
35
+ ('num', numeric_transformer, num_cols),
36
+ ('cat', categorical_transformer, cat_cols)
37
+ ])
38
+
39
+ pipeline = Pipeline(steps=[('preprocessor', preprocessor)])
40
+
41
+ transform = pipeline.fit_transform(df)
42
+
43
+ df_transform = pd.DataFrame(data=transform, columns=list(map(get_only_features_names, preprocessor.get_feature_names_out())))
44
 
45
+ return df_transform
46
 
47
 
48
  def build_graph(csv_file, *, threshold, corr_type):