geosnap.io.get_nces

geosnap.io.get_nces(datastore, years='1516', dataset='sabs')[source]

Extract a subset of data from the National Center for Educational Statistics as a long-form geodataframe.

Parameters:
datastoregeosnap.DataStore

an instantiated DataStore object

yearsstr, optional

set of academic years to return formatted as a 4-digit string representing the two years from a single period of the academic calendar. For example, the 2015-2016 academic year is represented as “1516”. Defaults to “1516”

datasetstr, optional

which NCES dataset to query. Options include sabs, districts, or schools Defaults to ‘sabs’

Returns:
geopandas.GeoDataFrame

long-form geodataframe with ‘year’ column representing each time period