NYC Open Data Examples




Pay Notebook Creator: Roy Hyunjin Han0
Set Container: Numerical CPU with TINY Memory for 10 Minutes 0
Total0

Make Choropleth on New York City Boroughs

In [ ]:
# CrossCompute
target_folder = '/tmp'
manhattan_integer = 300
bronx_integer = 200
brooklyn_integer = 50
queens_integer = 150
staten_island_integer = 100
In [ ]:
from geotable import GeoTable
t = GeoTable.load('nyc-boroughs-20180221.zip')
t.head()
In [ ]:
# t.draw()
In [ ]:
t['FillGreens'] = [
    staten_island_integer,
    manhattan_integer,
    bronx_integer,
    brooklyn_integer,
    queens_integer,
]
In [ ]:
target_path = t.save_csv(target_folder + '/choropleth.csv')
print('borough_choropleth_geotable_path = %s' % target_path)