This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Dates": "3/14/2014", | |
"price": 39.8 | |
}, | |
{ | |
"Dates": "3/17/2014", | |
"price": 37.25 | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "FeatureCollection", | |
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, | |
"features": [ | |
{ "type": "Feature", "properties": { "bin": 4433407.0, "cnstrct_yr": 1939.0, "doitt_id": 1261107.0, "feat_code": 2100.0, "groundelev": 16.0, "heightroof": 59.33, "date_lstmo": "2017\/08\/22", "time_lstmo": "00:00:00.000", "lststatype": "Constructed", "name": null, "shape_area": 3531.7858901224299, "shape_len": 299.25102558088003 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -73.947526315165717, 40.754798438952726 ], [ -73.947528056639328, 40.75476145328328 ], [ -73.947667031355849, 40.754765237393144 ], [ -73.947722878077712, 40.754701440323494 ], [ -73.94781342904632, 40.754747277490445 ], [ -73.947767431819543, 40.754799822751302 ], [ -73.947757582372759, 40.754811074603602 ], [ -73.947821464410907, 40.75490368542831 ], [ -73.947771846632023, 40.754923477665251 ], [ -73.947726981293727, 40.754941373771892 ], [ -73.947663099350834, 40.754848762895243 ], [ -73.947660125 |
We can't make this file beautiful and searchable because it's too large.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
State Year District Dem Votes GOP Votes D Voteshare Incumbent Party | |
AL 1948 1 19778 0 1 1 D | |
AL 1948 2 21271 0 1 1 D | |
AL 1948 3 16279 0 1 1 D | |
AL 1948 4 17282 3054 0.849822974 1 D | |
AL 1948 5 20548 0 1 1 D | |
AL 1948 6 13968 2994 0.823487796 1 D | |
AL 1948 7 21552 0 1 1 D | |
AL 1948 8 19060 2510 0.883634678 1 D | |
AL 1948 9 33781 5006 0.870936138 1 D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"district13":"M702.1,363.8L702.1,363.8L702.1,363.8h-0.2h0h0l-0.1,0l-0.4,0l-0.1,0h0l0,0h0l-0.1,0l0,0l0,0l-0.1,0l-0.1,0l-0.1,0l-0.1,0l0,0l-0.1,0l-0.2,0l-0.1,0l0,0l0,0l0,0l0,0l-0.1,0h0l0,0l0,0l-0.1,0l0,0l-0.1,0l-0.3,0l-0.1,0l0,0l-0.1,0l-0.2,0l-0.1,0l0,0l-0.1,0l-0.1,0h0l-0.1,0l-0.2,0l-0.1,0l-0.1,0l0,0l-0.1,0l0,0l0,0l0,0h0l-0.1,0h0l-0.1,0h-0.1l-0.6,0H697l-0.1,0l-0.1,0l-0.1,0l-0.1,0l0,0h-0.1l-0.3,0h0l0,0l-0.1,0h0l-0.1,0h-0.1l-0.1,0h-0.1l0,0l-0.2,0l-0.5,0l-0.2,0l0,0l-0.1,0l-0.2,0h0h0l0,0l-0.1,0l-0.1,0l-0.2,0l-0.1,0l0,0h0l-0.1,0l0,0h-0.1h-0.3h-0.1l0,0h0l0,0h0l0,0l0,0l-0.1,0l-0.1,0l0,0l-0.1,0l-0.3,0l-0.1,0l0,0l-0.1,0h0h0l-0.1,0l-0.2,0h0l0,0l-0.1,0l-0.1,0l-0.1,0l-0.1,0l-0.2,0l-0.6,0l0,0l-0.2,0l-0.1,0l-0.2,0l-0.1,0l-0.1,0l-0.1,0l-0.2,0l-0.1,0l-0.1,0l-0.1,0l-0.2,0h0l-0.3,0l-0.1,0l-0.2,0l0,0l-0.1,0l-0.2,0l0,0l-0.1,0h0l0,0l-0.1,0l0,0l0,0l0,0l0,0l-0.1,0l0,0l0,0l-0.1,0l0,0l-0.4,0l-1.2,0l-0.4,0l0,0l-0.2,0l-0.5,0l-0.1,0l-0.1,0l0,0l0,0l0,0l0,0l0,0l-0.2,0l-0.5,0l-0.2,0h0h0l0,0l0,0l0,0l0,0l0,0l0,0l-0.2,0l-0.8,0l-0.2,0h0l-0.1,0l |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "FeatureCollection", | |
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::4269" } }, | |
"features": [ | |
{ "type": "Feature", "properties": { "STATEFP": "26", "CD115FP": "01", "GEOID": "2601", "NAMELSAD": "Congressional District 1", "LSAD": "C2", "CDSESSN": "115", "MTFCC": "G5200", "FUNCSTAT": "N", "ALAND": 64823240980, "AWATER": 75783708302, "INTPTLAT": "+46.1573045", "INTPTLON": "-086.4369120" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -90.418392, 46.566099 ], [ -90.416438, 46.569069 ], [ -90.415889, 46.569937 ], [ -90.414593, 46.571989 ], [ -90.410348, 46.578711 ], [ -90.410116, 46.579078 ], [ -90.408548, 46.581559 ], [ -90.406102, 46.585433 ], [ -90.401184, 46.593335 ], [ -90.386434, 46.617042 ], [ -90.381518, 46.624945 ], [ -90.359138, 46.659592 ], [ -90.292001, 46.763534 ], [ -90.269622, 46.798182 ], [ -90.250174, 46.828454 ], [ -90.238139, 46.847007 ], [ -90.220022, 46.87494 ], [ -90.143501, 46.99336 ], [ -90.139252, 46.999937 ], [ -90.125164, 47.020679 ], [ -90.111 |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"type":"FeatureCollection", "features": [ | |
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-83.14843099969085,42.34468800055083],[-83.1491970008409,42.341072000172744],[-83.14974300083878,42.34001900017677],[-83.15081400076548,42.33878399988174],[-83.1524249995141,42.337796000185335],[-83.15371300045456,42.33733299951837],[-83.15510900097956,42.33705499928885],[-83.15698157114258,42.33699642914195],[-83.1572029995188,42.34268100062775],[-83.15840299999843,42.34265300023583],[-83.15841599879928,42.344463000067435],[-83.16026500042938,42.344419999883144],[-83.16029459981587,42.34643979985691],[-83.16081299962019,42.34703500086465],[-83.16079000035819,42.34804999910824],[-83.16092899957363,42.35164200017823],[-83.1575249999787,42.351715999094154],[-83.14773600001632,42.35191599932398],[-83.14759200057034,42.35075300055058],[-83.14754500020155,42.34991799981589],[-83.14843099969085,42.34468800055083]]]},"properties":{"State":"Michigan","County":"Wayne","Precinct":"Dearborn Pct 1","Trump":93,"Clint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import csv | |
import json | |
r = csv.reader(open("data.csv")) | |
headers = r.next() | |
countries = headers[1:] | |
def saveData(output): | |
filename = "ranked" | |
print "Writing JSON output to %s.json" % filename |