Skip to content

Instantly share code, notes, and snippets.

View jowang0319's full-sized avatar

Zhizhou Wang jowang0319

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 27 columns, instead of 11. in line 7.
Region,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015
Africa,106.6,106,105.3,104.6,103.8,102.8,101.4,99.9,98.1,96,93.7,91,88.1,85,81.9,78.8,75.8,72.8,69.9,67.1,64.7,62.4,60.3,58.5,56.9,55.4
Americas,33.8,32.4,31.1,29.8,28.5,27.2,26.1,24.9,23.9,22.7,21.6,20.5,19.4,18.3,17.5,16.6,15.9,15.4,14.9,14.5,14.6,13.7,13.4,13.1,12.8,12.5
Eastern Mediterranean,74.3,72.7,71.3,70,68.7,67.3,65.9,64.4,62.8,61.2,59.7,58.2,56.7,55.3,53.9,52.6,51.5,50.4,49.3,48.2,47.1,45.7,44.3,42.9,41.6,40.5
Europe,25.9,25.4,24.9,24.3,23.5,22.7,21.9,21,20.2,19.4,18.5,17.7,16.7,15.9,15,14.3,13.6,13,12.4,11.9,11.5,11.1,10.8,10.5,10.2,9.8
Global,62.8,62.1,61.6,61.1,60.6,60,59,57.8,56.4,54.8,53.1,51.4,49.5,47.7,46,44.3,42.8,41.4,40.1,38.7,37.5,36.2,34.9,33.7,32.6,31.7
South-East Asia,83.6,81.2,78.9,76.6,74.4,72.2,70.1,67.9,65.8,63.6,61.4,59.2,57,55,53.1,50.9,49.1,47.2,45.6,43.7,41.9,40.1,38.4,36.7,35.2,34
Western Pacific,40.2,39.6,38.7,37.3,35.7,34.2,32.9,31.8,30.8,
@jowang0319
jowang0319 / data.csv
Created September 17, 2015 22:32
Week4: Heatmap table
Year High-income Upper-middle-income Lower-middle-income Low-income
1995 61.2 50.1 35.9 33.8
1996 61.1 48.5 35 33.1
1997 60.6 49.4 33.4 34.3
1998 59.5 48.7 33 35.4
1999 59.3 48 34 34.1
2000 59.3 46.7 34 36.6
2001 59.8 46.4 33.4 36.6
2002 59.4 46.9 32.8 34.5
2003 58.8 47.2 32.2 35.2
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 27 columns, instead of 11. in line 7.
Region,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015
Africa,106.6,106,105.3,104.6,103.8,102.8,101.4,99.9,98.1,96,93.7,91,88.1,85,81.9,78.8,75.8,72.8,69.9,67.1,64.7,62.4,60.3,58.5,56.9,55.4
Americas,33.8,32.4,31.1,29.8,28.5,27.2,26.1,24.9,23.9,22.7,21.6,20.5,19.4,18.3,17.5,16.6,15.9,15.4,14.9,14.5,14.6,13.7,13.4,13.1,12.8,12.5
Eastern Mediterranean,74.3,72.7,71.3,70,68.7,67.3,65.9,64.4,62.8,61.2,59.7,58.2,56.7,55.3,53.9,52.6,51.5,50.4,49.3,48.2,47.1,45.7,44.3,42.9,41.6,40.5
Europe,25.9,25.4,24.9,24.3,23.5,22.7,21.9,21,20.2,19.4,18.5,17.7,16.7,15.9,15,14.3,13.6,13,12.4,11.9,11.5,11.1,10.8,10.5,10.2,9.8
Global,62.8,62.1,61.6,61.1,60.6,60,59,57.8,56.4,54.8,53.1,51.4,49.5,47.7,46,44.3,42.8,41.4,40.1,38.7,37.5,36.2,34.9,33.7,32.6,31.7
South-East Asia,83.6,81.2,78.9,76.6,74.4,72.2,70.1,67.9,65.8,63.6,61.4,59.2,57,55,53.1,50.9,49.1,47.2,45.6,43.7,41.9,40.1,38.4,36.7,35.2,34
Western Pacific,40.2,39.6,38.7,37.3,35.7,34.2,32.9,31.8,30.8,
@jowang0319
jowang0319 / index.html
Last active September 22, 2015 00:17
Week 4: SVG fixes
<html lang="en">
<head>
<meta charset="utf-8">
<title>SVG Shapes</title>
<style>
svg {
background-color:lightgray
}
line {
stroke-width:3px
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 25 columns, instead of 1. in line 6.
country,dwellingsWithoutBasicFacilities,housingExpenditure,roomsPerPerson,householdNetAdjustedDisposableIncome,householdNetFinancialWealth,employmentRate,jobSecurity,longTermUnemploymentRate,personalEarnings,qualityOfSupportNetwork,educationalAttainment,studentSkills,yearsInEducation,airPollution,waterQuality,consultationOnRuleMaking,voterTurnout,lifeExpectancy,selfReportedHealth,lifeSatisfaction,assaultRate,homicideRate,employeesWorkingVeryLongHours,timeDevotedToLeisureAndPersonalCare
Australia,1.1,20,2.3,31197,38482,72,4.4,1.06,46585,93,74,512,18.8,13,93,10.5,93,82,85,7.4,2.1,0.8,14.23,14.41
Austria,1,21,1.6,29256,48125,73,3.4,1.07,43837,95,82,500,16.9,27,95,7.1,75,81.1,69,7.5,3.4,0.5,8.61,14.46
Belgium,1.9,20,2.3,27811,78368,62,4.5,3.37,47276,91,71,509,18.8,21,84,4.5,89,80.5,74,7.1,6.6,1.2,4.41,15.71
Brazil,6.7,21,1.4,10310,6875,67,4.8,2.17,7909,90,43,402,16.3,18,67,4,79,73.4,69,7.2,7.9,25.5,10.74,14.97
Canada,0.2,22,2.5,30212,63261,72,6.6,0.9,44017,94,89,522,17,15,90,10.5,61,81,88,7.6,1.3,1.7,3.98,14.25
C
@jowang0319
jowang0319 / data.csv
Created September 25, 2015 20:55
week5:scatter plot
country infantMortalityRate primaryCompletionRate
Algeria 23.5 92.51422882
Angola 109.6 40.14783859
Antigua and Barbuda 7.7 101.913269
Arab World 32.28170265 82.6985321
Argentina 13 108.2583084
Austria 3.6 98.25421143
Azerbaijan 33.9 88.97885132
Bahamas, The 11.4 94.85346985
Bangladesh 39.2 70.49899292
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 27 columns, instead of 9. in line 7.
Region,year1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,year2015
Africa,106.6,106,105.3,104.6,103.8,102.8,101.4,99.9,98.1,96,93.7,91,88.1,85,81.9,78.8,75.8,72.8,69.9,67.1,64.7,62.4,60.3,58.5,56.9,55.4
Americas,33.8,32.4,31.1,29.8,28.5,27.2,26.1,24.9,23.9,22.7,21.6,20.5,19.4,18.3,17.5,16.6,15.9,15.4,14.9,14.5,14.6,13.7,13.4,13.1,12.8,12.5
Eastern Mediterranean,74.3,72.7,71.3,70,68.7,67.3,65.9,64.4,62.8,61.2,59.7,58.2,56.7,55.3,53.9,52.6,51.5,50.4,49.3,48.2,47.1,45.7,44.3,42.9,41.6,40.5
Europe,25.9,25.4,24.9,24.3,23.5,22.7,21.9,21,20.2,19.4,18.5,17.7,16.7,15.9,15,14.3,13.6,13,12.4,11.9,11.5,11.1,10.8,10.5,10.2,9.8
Global,62.8,62.1,61.6,61.1,60.6,60,59,57.8,56.4,54.8,53.1,51.4,49.5,47.7,46,44.3,42.8,41.4,40.1,38.7,37.5,36.2,34.9,33.7,32.6,31.7
South-East Asia,83.6,81.2,78.9,76.6,74.4,72.2,70.1,67.9,65.8,63.6,61.4,59.2,57,55,53.1,50.9,49.1,47.2,45.6,43.7,41.9,40.1,38.4,36.7,35.2,34
Western Pacific,40.2,39.6,38.7,37.3,35.7,34.2,32.9,31
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 27 columns, instead of 11. in line 7.
Region,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015
Africa,106.6,106,105.3,104.6,103.8,102.8,101.4,99.9,98.1,96,93.7,91,88.1,85,81.9,78.8,75.8,72.8,69.9,67.1,64.7,62.4,60.3,58.5,56.9,55.4
Americas,33.8,32.4,31.1,29.8,28.5,27.2,26.1,24.9,23.9,22.7,21.6,20.5,19.4,18.3,17.5,16.6,15.9,15.4,14.9,14.5,14.6,13.7,13.4,13.1,12.8,12.5
Eastern Mediterranean,74.3,72.7,71.3,70,68.7,67.3,65.9,64.4,62.8,61.2,59.7,58.2,56.7,55.3,53.9,52.6,51.5,50.4,49.3,48.2,47.1,45.7,44.3,42.9,41.6,40.5
Europe,25.9,25.4,24.9,24.3,23.5,22.7,21.9,21,20.2,19.4,18.5,17.7,16.7,15.9,15,14.3,13.6,13,12.4,11.9,11.5,11.1,10.8,10.5,10.2,9.8
Global,62.8,62.1,61.6,61.1,60.6,60,59,57.8,56.4,54.8,53.1,51.4,49.5,47.7,46,44.3,42.8,41.4,40.1,38.7,37.5,36.2,34.9,33.7,32.6,31.7
South-East Asia,83.6,81.2,78.9,76.6,74.4,72.2,70.1,67.9,65.8,63.6,61.4,59.2,57,55,53.1,50.9,49.1,47.2,45.6,43.7,41.9,40.1,38.4,36.7,35.2,34
Western Pacific,40.2,39.6,38.7,37.3,35.7,34.2,32.9,31.8,30.8,
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 55 columns, instead of 41. in line 2.
country,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014
Aruba,102.8116,99.417,94.4542,89.4914,84.5286,79.5658,74.603,71.665,68.727,65.789,62.851,59.913,59.0044,58.0958,57.1872,56.2786,55.37,54.9542,54.5384,54.1226,53.7068,53.291,53.0288,52.7666,52.5044,52.2422,51.98,51.41,50.84,50.27,49.7,49.13,48.7648,48.3996,48.0344,47.6692,47.304,46.067,44.83,43.593,42.356,41.119,39.5738,38.0286,36.4834,34.9382,33.393,32.0268,30.6606,29.2944,27.9282,26.562,24.842,23.122
Afghanistan,145.321,145.321,145.321,145.321,145.321,145.321,145.321,145.321,145.321,145.321,145.321,145.321,146.215,147.109,148.003,148.897,149.791,150.8782,151.9654,153.0526,154.1398,155.227,156.3758,157.5246,158.6734,159.8222,160.971,161.56,162.149,162.738,163.327,163.916,164.1812,164.4464,164.7116,164.9768,165.242,161.4432,157.6444,153.
country literacyRate infantMortalityRate primaryCompletionRate
Afghanistan 75.1
Albania 14.8
Algeria 23.5 92.51422882
American Samoa
Andorra 2.5
Angola 109.6 40.14783859
Antigua and Barbuda 7.7 101.913269
Arab World 85.73280327 32.28170265 82.6985321
Argentina 13 108.2583084