Skip to content

Instantly share code, notes, and snippets.

some second stuff
@ranimolla
ranimolla / betterlifegistmod1.csv
Created August 20, 2015 01:24
OECD better life data module 1
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 15 columns, instead of 11. in line 6.
Quarter,coal,petroleum liquids,petroleum coke,natural gas,other gases,nuclear,conventional hydroelectric,wind,solar,geothermal,biomass,wood and wood-derived fuels,other biomass,other
1/1/01,482.291606,37.907115,2.279236,124.720004,2.163282,192.120196,56.802126,1.352612,0.050566,3.492392,12.23492098,8.740903,3.49401798,2.79477302
3/1/01,454.879372,30.875122,2.201083,154.380105,2.215596,185.538569,57.916259,1.989358,0.210955,3.254199,12.07471809,8.451965,3.62275309,2.92122491
6/1/01,516.3348,29.717178,2.896762,211.621086,2.455158,200.933987,52.248914,1.702427,0.242096,3.484781,12.87810493,9.106038,3.77206693,3.07390407
9/1/01,450.450164,16.147601,2.856124,148.407924,2.205437,190.233556,49.993746,1.692934,0.039138,3.509129,12.56031297,8.900999,3.65931397,3.11644003
1/1/02,458.892491,16.759526,3.812037,143.935727,2.586303,195.624784,62.995428,2.377436,0.079282,3.664646,12.63144354,9.060071,3.57137254,2.97752146
3/1/02,458.378691,19.627528,4.128777,165.052664,2.808165,187.84115,79.122147,3.228373,0.199041,3.481408
@ranimolla
ranimolla / generation.csv
Last active September 1, 2015 00:15
Electricity Generation
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 15 columns, instead of 11. in line 6.
Quarter,coal,petroleum liquids,petroleum coke,natural gas,other gases,nuclear,conventional hydroelectric,wind,solar,geothermal,biomass,wood and wood-derived fuels,other biomass,other
1/1/01,482.291606,37.907115,2.279236,124.720004,2.163282,192.120196,56.802126,1.352612,0.050566,3.492392,12.23492098,8.740903,3.49401798,2.79477302
3/1/01,454.879372,30.875122,2.201083,154.380105,2.215596,185.538569,57.916259,1.989358,0.210955,3.254199,12.07471809,8.451965,3.62275309,2.92122491
6/1/01,516.3348,29.717178,2.896762,211.621086,2.455158,200.933987,52.248914,1.702427,0.242096,3.484781,12.87810493,9.106038,3.77206693,3.07390407
9/1/01,450.450164,16.147601,2.856124,148.407924,2.205437,190.233556,49.993746,1.692934,0.039138,3.509129,12.56031297,8.900999,3.65931397,3.11644003
1/1/02,458.892491,16.759526,3.812037,143.935727,2.586303,195.624784,62.995428,2.377436,0.079282,3.664646,12.63144354,9.060071,3.57137254,2.97752146
3/1/02,458.378691,19.627528,4.128777,165.052664,2.808165,187.84115,79.122147,3.228373,0.199041,3.481408
@ranimolla
ranimolla / generation.csv
Created September 1, 2015 00:19
Module 2, try 2
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 15 columns, instead of 11. in line 6.
Quarter,coal,petroleum liquids,petroleum coke,natural gas,other gases,nuclear,conventional hydroelectric,wind,solar,geothermal,biomass,wood and wood-derived fuels,other biomass,other
1/1/01,482.291606,37.907115,2.279236,124.720004,2.163282,192.120196,56.802126,1.352612,0.050566,3.492392,12.23492098,8.740903,3.49401798,2.79477302
3/1/01,454.879372,30.875122,2.201083,154.380105,2.215596,185.538569,57.916259,1.989358,0.210955,3.254199,12.07471809,8.451965,3.62275309,2.92122491
6/1/01,516.3348,29.717178,2.896762,211.621086,2.455158,200.933987,52.248914,1.702427,0.242096,3.484781,12.87810493,9.106038,3.77206693,3.07390407
9/1/01,450.450164,16.147601,2.856124,148.407924,2.205437,190.233556,49.993746,1.692934,0.039138,3.509129,12.56031297,8.900999,3.65931397,3.11644003
1/1/02,458.892491,16.759526,3.812037,143.935727,2.586303,195.624784,62.995428,2.377436,0.079282,3.664646,12.63144354,9.060071,3.57137254,2.97752146
3/1/02,458.378691,19.627528,4.128777,165.052664,2.808165,187.84115,79.122147,3.228373,0.199041,3.481408
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Adding Tooltips</title>
<script type="text/javascript" src="../d3.v3.js"></script>
<style type="text/css">
body {
background-color: #ddddff;
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 15 columns, instead of 11. in line 6.
Quarter,coal,petroleum liquids,petroleum coke,natural gas,other gases,nuclear,conventional hydroelectric,wind,solar,geothermal,biomass,wood and wood-derived fuels,other biomass,other
1/1/01,482.291606,37.907115,2.279236,124.720004,2.163282,192.120196,56.802126,1.352612,0.050566,3.492392,12.23492098,8.740903,3.49401798,2.79477302
3/1/01,454.879372,30.875122,2.201083,154.380105,2.215596,185.538569,57.916259,1.989358,0.210955,3.254199,12.07471809,8.451965,3.62275309,2.92122491
6/1/01,516.3348,29.717178,2.896762,211.621086,2.455158,200.933987,52.248914,1.702427,0.242096,3.484781,12.87810493,9.106038,3.77206693,3.07390407
9/1/01,450.450164,16.147601,2.856124,148.407924,2.205437,190.233556,49.993746,1.692934,0.039138,3.509129,12.56031297,8.900999,3.65931397,3.11644003
1/1/02,458.892491,16.759526,3.812037,143.935727,2.586303,195.624784,62.995428,2.377436,0.079282,3.664646,12.63144354,9.060071,3.57137254,2.97752146
3/1/02,458.378691,19.627528,4.128777,165.052664,2.808165,187.84115,79.122147,3.228373,0.199041,3.481408
@ranimolla
ranimolla / generation.csv
Last active September 13, 2015 16:52
module 4 rani
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 15 columns, instead of 11. in line 6.
Quarter,coal,petroleum liquids,petroleum coke,natural gas,other gases,nuclear,conventional hydroelectric,wind,solar,geothermal,biomass,wood and wood-derived fuels,other biomass,other
1/1/01,482.291606,37.907115,2.279236,124.720004,2.163282,192.120196,56.802126,1.352612,0.050566,3.492392,12.23492098,8.740903,3.49401798,2.79477302
3/1/01,454.879372,30.875122,2.201083,154.380105,2.215596,185.538569,57.916259,1.989358,0.210955,3.254199,12.07471809,8.451965,3.62275309,2.92122491
6/1/01,516.3348,29.717178,2.896762,211.621086,2.455158,200.933987,52.248914,1.702427,0.242096,3.484781,12.87810493,9.106038,3.77206693,3.07390407
9/1/01,450.450164,16.147601,2.856124,148.407924,2.205437,190.233556,49.993746,1.692934,0.039138,3.509129,12.56031297,8.900999,3.65931397,3.11644003
1/1/02,458.892491,16.759526,3.812037,143.935727,2.586303,195.624784,62.995428,2.377436,0.079282,3.664646,12.63144354,9.060071,3.57137254,2.97752146
3/1/02,458.378691,19.627528,4.128777,165.052664,2.808165,187.84115,79.122147,3.228373,0.199041,3.481408
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 15 columns, instead of 11. in line 6.
Quarter,coal,petroleum liquids,petroleum coke,natural gas,other gases,nuclear,conventional hydroelectric,wind,solar,geothermal,biomass,wood and wood-derived fuels,other biomass,other
1/1/01,482.291606,37.907115,2.279236,124.720004,2.163282,192.120196,56.802126,1.352612,0.050566,3.492392,12.23492098,8.740903,3.49401798,2.79477302
3/1/01,454.879372,30.875122,2.201083,154.380105,2.215596,185.538569,57.916259,1.989358,0.210955,3.254199,12.07471809,8.451965,3.62275309,2.92122491
6/1/01,516.3348,29.717178,2.896762,211.621086,2.455158,200.933987,52.248914,1.702427,0.242096,3.484781,12.87810493,9.106038,3.77206693,3.07390407
9/1/01,450.450164,16.147601,2.856124,148.407924,2.205437,190.233556,49.993746,1.692934,0.039138,3.509129,12.56031297,8.900999,3.65931397,3.11644003
1/1/02,458.892491,16.759526,3.812037,143.935727,2.586303,195.624784,62.995428,2.377436,0.079282,3.664646,12.63144354,9.060071,3.57137254,2.97752146
3/1/02,458.378691,19.627528,4.128777,165.052664,2.808165,187.84115,79.122147,3.228373,0.199041,3.481408
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 59 columns, instead of 53. in line 1.
Fuel,generation ,1/1/01,3/1/01,6/1/01,9/1/01,1/1/02,3/1/02,6/1/02,9/1/02,1/1/03,3/1/03,6/1/03,9/1/03,1/1/04,3/1/04,6/1/04,9/1/04,1/1/05,3/1/05,6/1/05,9/1/05,1/1/06,3/1/06,6/1/06,9/1/06,1/1/07,3/1/07,6/1/07,9/1/07,1/1/08,3/1/08,6/1/08,9/1/08,1/1/09,3/1/09,6/1/09,9/1/09,1/1/10,3/1/10,6/1/10,9/1/10,1/1/11,3/1/11,6/1/11,9/1/11,1/1/12,3/1/12,6/1/12,9/1/12,1/1/13,3/1/13,6/1/13,9/1/13,1/1/14,3/1/14,6/1/14,9/1/14,1/1/15
coal,mWh generation,482.291606,454.879372,516.3348,450.450164,458.892491,458.378691,528.516458,487.342714,493.297409,454.507588,532.094143,493.837609,496.4489319,466.1292397,523.9260866,491.7962911,496.4446213,471.9081978,545.3207271,499.1994996,489.1773847,468.1294669,538.8661553,494.3381275,499.1533241,477.2757064,544.5798768,495.4466762,510.2851021,472.9422043,528.6662966,473.9076436,448.3712629,405.6948018,458.6390002,443.1991882,470.7699532,435.7158679,506.0914909,434.7129666,443.9590679,419.6450351,488.8075026,381.0183997,348.4885835,343.5291233,438.2199257,383.805312,392.2851863,369.6303986,435
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 59 columns, instead of 53. in line 1.
Fuel,generation ,1/1/01,3/1/01,6/1/01,9/1/01,1/1/02,3/1/02,6/1/02,9/1/02,1/1/03,3/1/03,6/1/03,9/1/03,1/1/04,3/1/04,6/1/04,9/1/04,1/1/05,3/1/05,6/1/05,9/1/05,1/1/06,3/1/06,6/1/06,9/1/06,1/1/07,3/1/07,6/1/07,9/1/07,1/1/08,3/1/08,6/1/08,9/1/08,1/1/09,3/1/09,6/1/09,9/1/09,1/1/10,3/1/10,6/1/10,9/1/10,1/1/11,3/1/11,6/1/11,9/1/11,1/1/12,3/1/12,6/1/12,9/1/12,1/1/13,3/1/13,6/1/13,9/1/13,1/1/14,3/1/14,6/1/14,9/1/14,1/1/15
coal,mWh generation,482.291606,454.879372,516.3348,450.450164,458.892491,458.378691,528.516458,487.342714,493.297409,454.507588,532.094143,493.837609,496.4489319,466.1292397,523.9260866,491.7962911,496.4446213,471.9081978,545.3207271,499.1994996,489.1773847,468.1294669,538.8661553,494.3381275,499.1533241,477.2757064,544.5798768,495.4466762,510.2851021,472.9422043,528.6662966,473.9076436,448.3712629,405.6948018,458.6390002,443.1991882,470.7699532,435.7158679,506.0914909,434.7129666,443.9590679,419.6450351,488.8075026,381.0183997,348.4885835,343.5291233,438.2199257,383.805312,392.2851863,369.6303986,435