Skip to content

Instantly share code, notes, and snippets.

@bdilday
bdilday / results63.csv
Last active April 5, 2016 17:50
kaggle March Madness (2016) results
region round gameidx Id team1 team2 score1 score2 win
south 1 1 2016_1122_1242 Austin Peay Kansas 79 105 0
south 1 2 2016_1160_1163 Colorado Connecticut 67 74 0
south 1 3 2016_1268_1355 Maryland S Dakota St 79 74 1
south 1 4 2016_1143_1218 California Hawaii 66 77 0
south 1 5 2016_1112_1455 Arizona Wichita St 55 65 0
south 1 6 2016_1138_1274 Buffalo Miami FL 72 79 0
south 1 7 2016_1234_1396 Iowa Temple 72 70 1
south 1 8 2016_1421_1437 UNC Asheville Villanova 56 86 0
west 1 9 2016_1221_1332 Holy Cross Oregon 52 91 0
@bdilday
bdilday / index.html
Last active December 10, 2015 19:04
Ramones song catalog - visualization
<!DOCTYPE html>
<meta charset="utf-8">
<html lang="en">
<head>
<meta charset="utf-8">
<title>Ramones Songs</title>
<style>
@bdilday
bdilday / geocoded_lahman_master.csv
Created December 8, 2015 17:55
goecoded version of Lahman birth place (master) database
We can't make this file beautiful and searchable because it's too large.
lahmanID,bbrefID,retroID,fgPlayerId,playerID,birthYear,birthMonth,birthDay,birthCountry,birthState,birthCity,birth_lat,birth_lon
1,aaronha01,aaroh101,1000001,aaronha01,1934,2,5,USA,AL,Mobile,30.6954,-88.0399
2,aaronto01,aarot101,1000002,aaronto01,1939,8,5,USA,AL,Mobile,30.6954,-88.0399
3,aasedo01,aased001,1000003,aasedo01,1954,9,8,USA,CA,Orange,33.7878,-117.853
4,abadan01,abada001,506,abadan01,1972,8,25,USA,FL,West Palm Beach,26.7153,-80.0534
5,abadijo01,abadj101,1000004,abadijo01,1854,11,4,USA,PA,Philadelphia,39.9526,-75.1652
6,abbated01,abbae101,1000005,abbated01,1877,4,15,USA,PA,Latrobe,40.3212,-79.3795
7,abbeybe01,abbeb101,1000006,abbeybe01,1869,11,29,USA,VT,Essex,\N,\N
8,abbeych01,abbec101,1000007,abbeych01,1866,10,14,USA,NE,Falls City,40.0608,-95.6019
9,abbotda01,abbod101,1000008,abbotda01,1862,3,16,USA,OH,Portage,\N,\N
@bdilday
bdilday / index.html
Last active December 4, 2015 14:45
d3js + joy divison + mlb HOF pca
<!DOCTYPE html>
<meta charset="utf-8">
<title></title>
<head>
<link href='https://fonts.googleapis.com/css?family=Amatic+SC:400,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Nunito:400,700' rel='stylesheet' type='text/css'>
<style>
@bdilday
bdilday / README.md
Last active December 1, 2015 21:13
Visualization of the careers of the top 20 baseball players

Visualization of the careers of the top 20 baseball players

My submission shows the cumulative totals for a variety of baseball statistics for the top 20 position players (as measured by baseball-reference WAR, 1901-present), as a function of year. The chart includes a number of interactive elements to help navigate the information, which I hope are self-explanatory and discoverable.

By showing the totals as a function of time, over a baseline of approximately 115 years, we get a relatively sparse graph, and a fair amount of blank space. I considered trying to condense the chart, but I feel this representation is meaningful and gives a visual sense of the vast span of time that baseball data encompasses; there are very few areas where we have data as detailed and numerous, over such a long time span, as we have for baseball. One of the the things I love about baseball is that behind the numbers and the statistics are people and personalities and a time and place in American history; Babe Ruth didn't just hi

@bdilday
bdilday / 603acbb77d6aa22702fb.png
Last active October 27, 2015 01:34
HOF selector - bar chart - test vi
603acbb77d6aa22702fb.png
@bdilday
bdilday / HOF_metrics.csv
Last active October 11, 2015 23:41
HOF selector - bar chart - test iv
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 31 columns, instead of 27. in line 5.
pname,plid,birthYear,minyr,fWar,rWar,fwa2,rwa2,fwa3,rwa3,fwa4,rwa4,fwa5,rwa5,fwa7,rwa7,fwb3,rwb3,fwb5,rwb5,fwb7,rwb7,fDoom,rDoom,fJAWS,rJAWS,ibat,hofmon,hofstd,ithisyear,poz100
JackMorris,morrija02,1955,1977,52.50,43.90,21.10,21.00,10.10,11.60,3.00,5.20,0.80,1.00,-0.00,-0.00,15.00,16.00,22.40,25.20,29.70,32.60,55.49,53.69,41.10,38.25,0,122,39,0,0
NoodlesHahn,hahnno01,1879,1899,39.60,46.00,25.40,33.90,19.40,27.90,13.40,21.90,7.40,15.90,0.40,5.00,20.20,25.20,31.90,39.50,38.70,46.00,55.49,65.97,39.15,46.00,0,62,31,0,0
WarrenSpahn,spahnwa01,1921,1942,81.30,92.70,44.60,58.60,27.40,41.40,14.10,26.20,5.90,15.40,-0.00,5.20,19.60,26.20,30.90,38.50,40.80,49.70,78.82,95.05,61.05,71.20,0,260,66,0,43
KennyRogers,rogerke01,1964,1989,46.80,51.20,17.00,24.60,6.70,14.50,1.50,8.10,-0.00,3.30,-0.00,0.50,13.50,18.30,20.60,28.10,27.30,35.20,49.98,60.86,37.05,43.20,0,66,29,0,0
RickWise,wiseri01,1945,1964,49.80,32.20,21.70,11.20,11.70,3.80,4.80,1.10,1.00,-0.00,-0.00,-0.00,16.00,12.50,24.80,18.70,32.00,24.50,56.14,40.10,40.90,28.35,
@bdilday
bdilday / HOF_metrics.csv
Created September 13, 2015 02:57
HOF selector - bar chart - test ii
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 31 columns, instead of 27. in line 5.
pname,plid,birthYear,minyr,fWar,rWar,fwa2,rwa2,fwa3,rwa3,fwa4,rwa4,fwa5,rwa5,fwa7,rwa7,fwb3,rwb3,fwb5,rwb5,fwb7,rwb7,fDoom,rDoom,fJAWS,rJAWS,ibat,hofmon,hofstd,ithisyear,poz100
JackMorris,morrija02,1955,1977,52.50,43.90,21.10,21.00,10.10,11.60,3.00,5.20,0.80,1.00,-0.00,-0.00,15.00,16.00,22.40,25.20,29.70,32.60,55.49,53.69,41.10,38.25,0,122,39,0,0
NoodlesHahn,hahnno01,1879,1899,39.60,46.00,25.40,33.90,19.40,27.90,13.40,21.90,7.40,15.90,0.40,5.00,20.20,25.20,31.90,39.50,38.70,46.00,55.49,65.97,39.15,46.00,0,62,31,0,0
WarrenSpahn,spahnwa01,1921,1942,81.30,92.70,44.60,58.60,27.40,41.40,14.10,26.20,5.90,15.40,-0.00,5.20,19.60,26.20,30.90,38.50,40.80,49.70,78.82,95.05,61.05,71.20,0,260,66,0,43
KennyRogers,rogerke01,1964,1989,46.80,51.20,17.00,24.60,6.70,14.50,1.50,8.10,-0.00,3.30,-0.00,0.50,13.50,18.30,20.60,28.10,27.30,35.20,49.98,60.86,37.05,43.20,0,66,29,0,0
RickWise,wiseri01,1945,1964,49.80,32.20,21.70,11.20,11.70,3.80,4.80,1.10,1.00,-0.00,-0.00,-0.00,16.00,12.50,24.80,18.70,32.00,24.50,56.14,40.10,40.90,28.35,
@bdilday
bdilday / LICENSE
Last active October 23, 2017 01:52
building a crossword - datavis.is.kewl
MIT License
Copyright (c) 2017 Ben Dilday
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@bdilday
bdilday / README.md
Created August 8, 2015 05:35
letter-to-letter network

A visualization of letter-to-letter network data. This was created for the University of Illinois Coursera class on data visualization.

These data were obtained from the SCOWL (Spell Checker Oriented Word Lists) database, available here, http://wordlist.aspell.net. I generated a medium-sized database of English words, capital words, and abbreviations, and then computed the number of occurrences of letter #1 being succeeded by letter #2. The nodes are connected by chords, and the width of the chords represents the fraction of links from letter #1 that terminate on letter #2. The angle of the arc for each letter represents the fraction of all letters. Hovering the mouse on an arc highlights the links from that arc and fills the table with the letter-to-letter fractions. Hovering the mouse on a chord displays the letter-to-letter fractions.