geosnap.io.get_lehd

geosnap.io.get_lehd(dataset='wac', state='dc', year=2015)[source]

Grab data from the LODES FTP server as a pandas DataFrame.

Parameters
datasetstr

which LODES dataset to collect: “rac” or wac”, reffering to either residence area characteristics or workplace area characteristics the default is ‘wac’).

statestr

two-digit state abbreviation for example “ca” or “OH”

yearstr

which year to collect. First year avaialable for most states is 2002. Consult the LODES documentation for more details. The default is 2015.

Returns
pandas.DataFrame

a pandas DataFrame with columns representing census blocks, indexed on the block FIPS code.