Skip to content

pycensus.census.countries.usa.elections_precinct.build_schema

Regenerate schema/elections_precinct_schema.json by running every election (needs data access).

build(census_geometry_by_city=None, out=None)

Write the US precinct-elections schema JSON from the columns the loader produces.

Parameters:

Name Type Description Default
census_geometry_by_city

{city: {level: polygons}}.

None
out

Output file; None = the package schema.

None

Returns:

Type Description

The output path.