Skip to content

Instantly share code, notes, and snippets.

@toxford
toxford / airline_carrier_delay2015.csv
Created March 20, 2015 22:51
Percentage of flight delays due to airlines
Airline Jan-15 Feb-15 Mar-15 Apr-15 May-15 Jun-15 Jul-15 Aug-15 Sep-15 Oct-15 Nov-15 Dec-15
AirTran Airways 7.41 5.20 5.29 3.86 4.53 4.85 4.69 4.45 3.26 3.12 2.74 4.09
Alaska Airlines 3.34 2.88 3.20 2.34 2.52 3.47 3.32 3.74 2.99 2.95 3.41 4.20
American Airlines 6.75 6.04 5.40 4.82 6.03 7.43 7.10 7.24 5.61 6.04 6.16 7.85
Delta Air Lines 6.00 5.81 5.33 4.61 5.03 5.82 4.64 4.89 4.05 3.85 4.00 3.66
ExpressJet Airlines 7.14 8.48 6.82 5.89 6.33 7.25 6.53 6.34 5.96 5.74 4.90 6.20
Frontier Airlines 7.07 6.05 4.61 4.09 4.50 5.45 4.06 3.87 3.48 3.19 4.29 6.07
Hawaiian Airlines 5.24 6.23 4.96 3.49 3.84 3.20 4.01 3.68 4.56 5.85 5.76 6.81
JetBlue Airways 8.55 8.83 6.48 5.56 5.97 6.01 8.35 6.58 3.47 4.08 4.92 5.75
SkyWest Airlines 5.40 5.24 4.61 4.21 4.65 5.39 5.17 5.03 3.98 3.97 4.88 6.48
@toxford
toxford / airline_carrier_delay2015.csv
Created March 30, 2015 04:08
Airline delays mod2
AirTran Airways 7.41 5.20 5.29 3.86 4.53 4.85 4.69 4.45 3.26 3.12 2.74 4.09
Alaska Airlines 3.34 2.88 3.20 2.34 2.52 3.47 3.32 3.74 2.99 2.95 3.41 4.20
American Airlines 6.75 6.04 5.40 4.82 6.03 7.43 7.10 7.24 5.61 6.04 6.16 7.85
Delta Air Lines 6.00 5.81 5.33 4.61 5.03 5.82 4.64 4.89 4.05 3.85 4.00 3.66
ExpressJet Airlines 7.14 8.48 6.82 5.89 6.33 7.25 6.53 6.34 5.96 5.74 4.90 6.20
Frontier Airlines 7.07 6.05 4.61 4.09 4.50 5.45 4.06 3.87 3.48 3.19 4.29 6.07
Hawaiian Airlines 5.24 6.23 4.96 3.49 3.84 3.20 4.01 3.68 4.56 5.85 5.76 6.81
JetBlue Airways 8.55 8.83 6.48 5.56 5.97 6.01 8.35 6.58 3.47 4.08 4.92 5.75
SkyWest Airlines 5.40 5.24 4.61 4.21 4.65 5.39 5.17 5.03 3.98 3.97 4.88 6.48
@toxford
toxford / chart
Created April 2, 2015 15:57
chart style April 2
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700,600,400' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<style>
.bigChart {
width: 100%;
max-width: 600px;
margin: 0 auto 130px;
}
@toxford
toxford / airline_carrier_delay2015v2.csv
Created April 6, 2015 01:06
Cleaner csv of airline carrier delays
Airline Jan_2015 Feb_2015 March_2015 April_2015 May_2015 June_2015 July_2015 Aug_2015 Sept_2015 Oct_2015 Nov_2015 Dec_2015
AirTran Airways 7.41 5.2 5.29 3.86 4.53 4.85 4.69 4.45 3.26 3.12 2.74 4.09
Alaska Airlines 3.34 2.88 3.2 2.34 2.52 3.47 3.32 3.74 2.99 2.95 3.41 4.2
American Airlines 6.75 6.04 5.4 4.82 6.03 7.43 7.1 7.24 5.61 6.04 6.16 7.85
Delta Air Lines 6 5.81 5.33 4.61 5.03 5.82 4.64 4.89 4.05 3.85 4 3.66
ExpressJet Airlines 7.14 8.48 6.82 5.89 6.33 7.25 6.53 6.34 5.96 5.74 4.9 6.2
Frontier Airlines 7.07 6.05 4.61 4.09 4.5 5.45 4.06 3.87 3.48 3.19 4.29 6.07
Hawaiian Airlines 5.24 6.23 4.96 3.49 3.84 3.2 4.01 3.68 4.56 5.85 5.76 6.81
JetBlue Airways 8.55 8.83 6.48 5.56 5.97 6.01 8.35 6.58 3.47 4.08 4.92 5.75
SkyWest Airlines 5.4 5.24 4.61 4.21 4.65 5.39 5.17 5.03 3.98 3.97 4.88 6.48
AirTran Airways 7.41 5.2 5.29 3.86 4.53 4.85 4.69 4.45 3.26 3.12 2.74 4.09
Alaska Airlines 3.34 2.88 3.2 2.34 2.52 3.47 3.32 3.74 2.99 2.95 3.41 4.2
American Airlines 6.75 6.04 5.4 4.82 6.03 7.43 7.1 7.24 5.61 6.04 6.16 7.85
Delta Air Lines 6 5.81 5.33 4.61 5.03 5.82 4.64 4.89 4.05 3.85 4 3.66
ExpressJet Airlines 7.14 8.48 6.82 5.89 6.33 7.25 6.53 6.34 5.96 5.74 4.9 6.2
Frontier Airlines 7.07 6.05 4.61 4.09 4.5 5.45 4.06 3.87 3.48 3.19 4.29 6.07
Hawaiian Airlines 5.24 6.23 4.96 3.49 3.84 3.2 4.01 3.68 4.56 5.85 5.76 6.81
JetBlue Airways 8.55 8.83 6.48 5.56 5.97 6.01 8.35 6.58 3.47 4.08 4.92 5.75
SkyWest Airlines 5.4 5.24 4.61 4.21 4.65 5.39 5.17 5.03 3.98 3.97 4.88 6.48
Airline Jan_2014 Feb_2014 March_2014 April_2014 May_2014 June_2014 July_2014 Aug_2014 Sept_2014 Oct_2014 Nov_2014 Dec_2014
AirTran Airways 7.41 5.2 5.29 3.86 4.53 4.85 4.69 4.45 3.26 3.12 2.74 4.09
Alaska Airlines 3.34 2.88 3.2 2.34 2.52 3.47 3.32 3.74 2.99 2.95 3.41 4.2
American Airlines 6.75 6.04 5.4 4.82 6.03 7.43 7.1 7.24 5.61 6.04 6.16 7.85
Delta Air Lines 6 5.81 5.33 4.61 5.03 5.82 4.64 4.89 4.05 3.85 4 3.66
ExpressJet Airlines 7.14 8.48 6.82 5.89 6.33 7.25 6.53 6.34 5.96 5.74 4.9 6.2
Frontier Airlines 7.07 6.05 4.61 4.09 4.5 5.45 4.06 3.87 3.48 3.19 4.29 6.07
Hawaiian Airlines 5.24 6.23 4.96 3.49 3.84 3.2 4.01 3.68 4.56 5.85 5.76 6.81
JetBlue Airways 8.55 8.83 6.48 5.56 5.97 6.01 8.35 6.58 3.47 4.08 4.92 5.75
SkyWest Airlines 5.4 5.24 4.61 4.21 4.65 5.39 5.17 5.03 3.98 3.97 4.88 6.48
@toxford
toxford / d3.v3.js
Last active August 29, 2015 14:19
mod5-scatterplot
d3 = function() {
var d3 = {
version: "3.3.11"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_arraySlice = [].slice, d3_array = function(list) {
return d3_arraySlice.call(list);
};
@toxford
toxford / airlinesData.csv
Created May 18, 2015 00:17
d3 final - airlines multiline
date Airtran Alaska American Delta ExpressJet Frontier Hawaiian JetBlue SkyWest Southwest United USAirways VirginAmerica
20140101 7.4 3.3 6.8 6.0 7.1 7.1 5.2 8.6 5.4 8.0 8.7 6.0 3.5
20140201 5.2 2.9 6.0 5.8 8.5 6.1 6.2 8.8 5.2 7.7 9.1 5.8 3.8
20140301 5.3 3.2 5.4 5.3 6.8 4.6 5.0 6.5 4.6 8.0 7.2 5.8 2.7
20140401 3.9 2.3 4.8 4.6 5.9 4.1 3.5 5.6 4.2 7.5 5.2 5.1 2.4
20140501 4.5 2.5 6.0 5.0 6.3 4.5 3.8 6.0 4.7 8.4 6.5 5.7 2.7
20140601 4.9 3.5 7.4 5.8 7.3 5.5 3.2 6.0 5.4 9.4 8.7 6.7 3.8
20140701 4.7 3.3 7.1 4.6 6.5 4.1 4.0 8.4 5.2 9.1 7.5 7.0 3.1
20140801 4.5 3.7 7.2 4.9 6.3 3.9 3.7 6.6 5.0 7.4 7.0 5.5 3.4
20140901 3.3 3.0 5.6 4.1 6.0 3.5 4.6 3.5 4.0 5.4 5.3 4.7 3.1
20140101 7.4 3.3 6.8 6.0 7.1 7.1 5.2 8.6 5.4 8.0 8.7 6.0 3.5
20140201 5.2 2.9 6.0 5.8 8.5 6.1 6.2 8.8 5.2 7.7 9.1 5.8 3.8
20140301 5.3 3.2 5.4 5.3 6.8 4.6 5.0 6.5 4.6 8.0 7.2 5.8 2.7
20140401 3.9 2.3 4.8 4.6 5.9 4.1 3.5 5.6 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