Skip to content

Instantly share code, notes, and snippets.

@wsreedy
wsreedy / USA_immigration.csv
Created April 13, 2015 01:14
2010-2014 International Immigration by State
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 14 columns, instead of 11 in line 8.
state,population2010,population2011,population2012,population2013,population2014,populationRank,immigration2010,immigration2011,immigration2012,immigration2013,immigration2014,immigrationTotal,immigrationPercent
California,37253956,37701901,38062780,38431393,38802500,1,29904,147204,149511,160919,161318,648856,1.672201533
Texas,25145561,25657477,26094422,26505637,26956958,2,15393,78832,80039,84192,84637,343093,1.272743757
Florida,18801310,19107900,19355257,19600311,19893297,3,24148,110449,107644,112654,112306,467201,2.348534785
New York,19378102,19521745,19607140,19695680,19746227,4,24130,113261,110105,118929,118799,485224,2.457299817
Illinois,12830632,12858725,12873763,12890552,12880580,5,5614,28809,29697,32270,32453,128843,1.000288807
Pennsylvania,12702379,12743995,12770043,12781296,12787209,6,5509,27053,27501,29036,29060,118159,0.924040578
Ohio,11536504,11544757,11550901,11572005,11594163,7,3532,15797,16650,17557,17536,71072,0.612998109
Georgia,9687653,9813201,9919000,9994759,10097343,8,5310,22156,25396,249
@wsreedy
wsreedy / USA_immigration.csv
Created April 13, 2015 00:56
2010-2014 International Immigration by State
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 13 columns, instead of 12 in line 9.
state,population2010,population2011,population2012,population2013,population2014,immigration2010,immigration2011,immigration2012,immigration2013,immigration2014,immigrationTotal,immigrationPercent
Alabama,4779736,4801695,4817484,4833996,4849377,1352,4949,5626,5626,5606,23159,0.4775665
Alaska,710231,722572,731081,737259,736732,568,1525,2751,2352,2115,9311,1.263824566
Arizona,6392017,6472867,6556236,6634997,6731484,2274,12673,13185,14127,14234,56493,0.839235449
Arkansas,2915918,2938430,2949300,2958765,2966369,734,2861,3070,3220,3233,13118,0.442224147
California,37253956,37701901,38062780,38431393,38802500,29904,147204,149511,160919,161318,648856,1.672201533
Colorado,5029196,5119661,5191709,5272086,5355866,1911,8896,10864,10852,10685,43208,0.806741618
Connecticut,3574097,3590537,3594362,3599341,3596677,3380,16137,16354,17098,17022,69991,1.945990702
Delaware,897934,907829,916881,925240,935614,536,2202,2393,2403,2387,9921,1.060373188
District of Columbia,601723,620427,635040,649111,658893,733,3354,3509,3770,3760,1
@wsreedy
wsreedy / index.html
Created April 9, 2015 01:16
USA 2010 Population by State - bar chart
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>USA 2010 Population by State - bar chart</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body {
background-color: #ddddff;
@wsreedy
wsreedy / USA 2010 Population, 2011-2014 estimates by State.csv
Last active August 29, 2015 14:17
USA Population, 2010-2014, d3 csv and svg
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 48 columns, instead of 13 in line 2.
NAME,CENSUS2010POP,ESTIMATESBASE2010,POPESTIMATE2010,POPESTIMATE2011,POPESTIMATE2012,POPESTIMATE2013,POPESTIMATE2014,NPOPCHG_2010,NPOPCHG_2011,NPOPCHG_2012,NPOPCHG_2013,NPOPCHG_2014,BIRTHS2010,BIRTHS2011,BIRTHS2012,BIRTHS2013,BIRTHS2014,DEATHS2010,DEATHS2011,DEATHS2012,DEATHS2013,DEATHS2014,NATURALINC2010,NATURALINC2011,NATURALINC2012,NATURALINC2013,NATURALINC2014,INTERNATIONALMIG2010,INTERNATIONALMIG2011,INTERNATIONALMIG2012,INTERNATIONALMIG2013,INTERNATIONALMIG2014,DOMESTICMIG2010,DOMESTICMIG2011,DOMESTICMIG2012,DOMESTICMIG2013,DOMESTICMIG2014,NETMIG2010,NETMIG2011,NETMIG2012,NETMIG2013,NETMIG2014,RESIDUAL2010,RESIDUAL2011,RESIDUAL2012,RESIDUAL2013,RESIDUAL2014
Alabama,4779736,4780127,4785822,4801695,4817484,4833996,4849377,5695,15873,15789,16512,15381,14966,59691,59066,58036,58059,11097,48810,48380,49746,49793,3869,10881,10686,8290,8266,1352,4949,5626,5626,5606,489,-98,-810,1913,2034,1841,4851,4816,7539,7640,-15,141,287,683,-525
Alaska,710231,710249,713856,722572,731081,737259,736732,3607,8716,8509,6178,-5
@wsreedy
wsreedy / USA 2010 Population, 2011-2014 estimates by State.csv
Created March 18, 2015 20:46
US Census - 2010 Population by State with Estimates 2011 - 2014
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 48 columns, instead of 13 in line 2.
NAME,CENSUS2010POP,ESTIMATESBASE2010,POPESTIMATE2010,POPESTIMATE2011,POPESTIMATE2012,POPESTIMATE2013,POPESTIMATE2014,NPOPCHG_2010,NPOPCHG_2011,NPOPCHG_2012,NPOPCHG_2013,NPOPCHG_2014,BIRTHS2010,BIRTHS2011,BIRTHS2012,BIRTHS2013,BIRTHS2014,DEATHS2010,DEATHS2011,DEATHS2012,DEATHS2013,DEATHS2014,NATURALINC2010,NATURALINC2011,NATURALINC2012,NATURALINC2013,NATURALINC2014,INTERNATIONALMIG2010,INTERNATIONALMIG2011,INTERNATIONALMIG2012,INTERNATIONALMIG2013,INTERNATIONALMIG2014,DOMESTICMIG2010,DOMESTICMIG2011,DOMESTICMIG2012,DOMESTICMIG2013,DOMESTICMIG2014,NETMIG2010,NETMIG2011,NETMIG2012,NETMIG2013,NETMIG2014,RESIDUAL2010,RESIDUAL2011,RESIDUAL2012,RESIDUAL2013,RESIDUAL2014
Alabama,4779736,4780127,4785822,4801695,4817484,4833996,4849377,5695,15873,15789,16512,15381,14966,59691,59066,58036,58059,11097,48810,48380,49746,49793,3869,10881,10686,8290,8266,1352,4949,5626,5626,5606,489,-98,-810,1913,2034,1841,4851,4816,7539,7640,-15,141,287,683,-525
Alaska,710231,710249,713856,722572,731081,737259,736732,3607,8716,8509,6178,-5