This file contains hidden or 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
New York City | 71 | |
---|---|---|
Chicago | 34 | |
Dallas | 23 | |
Houston | 22 | |
San Francisco | 19 | |
San Jose | 19 | |
Atlanta | 16 | |
Minneapolis | 16 | |
Washington DC | 16 | |
Boston | 13 |
This file contains hidden or 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
import rasterstats as rs | |
import geopandas as gpd | |
import os | |
import pandas as pd | |
import glob | |
shape_frame = gpd.read_file('./tl_2017_us_county/tl_2017_us_county.shp') | |
shape = shape_frame.to_crs('+proj=longlat +datum=WGS84 +no_defs') | |
shape['GEOID'] = shape['GEOID'].astype(str) |