Skip to content

Instantly share code, notes, and snippets.

View lauzadis's full-sized avatar

Matas lauzadis

  • Boston
  • 05:55 (UTC -04:00)
View GitHub Profile
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
@lauzadis
lauzadis / narr_simple.py
Created March 30, 2020 17:21
CDC Challenge Weather Data Code
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)