Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tholsar
tholsar / Canada_Migration_dataset_all_sheet.csv
Created July 12, 2020 23:20
Created on Skills Network Labs
Unnamed: 0 Unnamed: 1 Unnamed: 2 Unnamed: 3 Unnamed: 4 Unnamed: 5 Unnamed: 6 Unnamed: 7 Unnamed: 8 Unnamed: 9 Unnamed: 10 Unnamed: 11 Unnamed: 12 Unnamed: 13 Unnamed: 14 Unnamed: 15 Unnamed: 16 Unnamed: 17 Unnamed: 18 Unnamed: 19 Unnamed: 20 Unnamed: 21 Unnamed: 22 Unnamed: 23 Unnamed: 24 Unnamed: 25 Unnamed: 26 Unnamed: 27 Unnamed: 28 Unnamed: 29 Unnamed: 30 Unnamed: 31 Unnamed: 32 Unnamed: 33 Unnamed: 34 Unnamed: 35 Unnamed: 36 Unnamed: 37
0
1
2
3 United Nations
4 Population Division
5 Department of Economic and Social Affairs
6
7 International Migration Flows to and from Selected Countries: The 2015 Revision
8
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tholsar
tholsar / bamboo_train_tree.dot
Created July 12, 2020 23:07
Created on Skills Network Labs
digraph Tree {
node [shape=box, style="filled", color="black"] ;
0 [label=<node &#35;0<br/>cumin &le; 0.5<br/>samples = 2298<br/>value = [412, 568, 290, 769, 259]<br/>class = korean>, fillcolor="#3c39e51e"] ;
1 [label=<node &#35;1<br/>roasted_sesame_seed &le; 0.5<br/>samples = 1860<br/>value = [408, 226, 284, 767, 175]<br/>class = korean>, fillcolor="#3c39e53f"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label=<node &#35;2<br/>starch &le; 0.5<br/>samples = 1621<br/>value = [403, 226, 280, 539, 173]<br/>class = korean>, fillcolor="#3c39e51c"] ;
1 -> 2 ;
3 [label=<node &#35;3<br/>cilantro &le; 0.5<br/>samples = 1409<br/>value = [256, 224, 266, 500, 163]<br/>class = korean>, fillcolor="#3c39e534"] ;
2 -> 3 ;
4 [label=<node &#35;4<br/>cayenne &le; 0.5<br/>samples = 1251<br/>value = [221, 173, 257, 499, 101]<br/>class = korean>, fillcolor="#3c39e53e"] ;
@tholsar
tholsar / Canada_Migration_dataset_all_sheet.csv
Created July 12, 2020 23:07
Created on Skills Network Labs
0
1
2
3 United Nations
4 Population Division
5 Department of Economic and Social Affairs
6
7 International Migration Flows to and from Selected Countries: The 2015 Revision
8
@tholsar
tholsar / PY0101EN-1-1-Types.ipynb
Created July 12, 2020 23:07
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tholsar
tholsar / exploratory-data-analysis.ipynb
Created July 10, 2020 23:17
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tholsar
tholsar / module_5_auto.csv
Created July 8, 2020 23:01
Created on Skills Network Labs
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 32 columns, instead of 18. in line 4.
,Unnamed: 0,Unnamed: 0.1,symboling,normalized-losses,make,aspiration,num-of-doors,body-style,drive-wheels,engine-location,wheel-base,length,width,height,curb-weight,engine-type,num-of-cylinders,engine-size,fuel-system,bore,stroke,compression-ratio,horsepower,peak-rpm,city-mpg,highway-mpg,price,city-L/100km,horsepower-binned,diesel,gas
0,0,0,3,122,alfa-romero,std,two,convertible,rwd,front,88.6,0.8111484863046613,0.8902777777777777,48.8,2548,dohc,four,130,mpfi,3.47,2.68,9.0,111.0,5000.0,21,27,13495.0,11.190476190476188,Medium,0,1
1,1,1,3,122,alfa-romero,std,two,convertible,rwd,front,88.6,0.8111484863046613,0.8902777777777777,48.8,2548,dohc,four,130,mpfi,3.47,2.68,9.0,111.0,5000.0,21,27,16500.0,11.190476190476188,Medium,0,1
2,2,2,1,122,alfa-romero,std,two,hatchback,rwd,front,94.5,0.8226814031715521,0.9097222222222222,52.4,2823,ohcv,six,152,mpfi,2.68,3.47,9.0,154.0,5000.0,19,26,16500.0,12.36842105263158,Medium,0,1
3,3,3,2,164,audi,std,four,sedan,fwd,front,99.8,0.8486304661220567,0.9194444444444444,54.3,2337,ohc,f
@tholsar
tholsar / clean_df.csv
Created July 8, 2020 23:01
Created on Skills Network Labs
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 43 columns, instead of 11. in line 3.
,symboling,normalized-losses,make,num-of-doors,body-style,drive-wheels,engine-location,wheel-base,length,width,height,curb-weight,engine-type,num-of-cylinders,engine-size,fuel-system,bore,stroke,compression-ratio,horsepower,peak-rpm,city-mpg,highway-L/100km,price,city-L/100km,horsepower-binned,diesel,gas,diesel,gas,diesel,gas,diesel,gas,aspiration-std,aspiration-turbo,aspiration-std,aspiration-turbo,aspiration-std,aspiration-turbo,aspiration-std,aspiration-turbo
0,3,122.0,alfa-romero,two,convertible,rwd,front,88.6,0.8111484863046613,0.8902777777777777,0.8160535117056856,2548,dohc,four,130,mpfi,3.47,2.68,9.0,111,5000,21,8.703703703703704,13495,11.19047619047619,Low,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0
1,3,122.0,alfa-romero,two,convertible,rwd,front,88.6,0.8111484863046613,0.8902777777777777,0.8160535117056856,2548,dohc,four,130,mpfi,3.47,2.68,9.0,111,5000,21,8.703703703703704,16500,11.19047619047619,Low,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0
2,1,122.0,alfa-romero,two,hatchback,rwd,front,94.5,0.8226814031715521,0.909722222
@tholsar
tholsar / review-introduction.ipynb
Created July 8, 2020 23:01
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.