Skip to content

pycensus.census.countries.canada.elections.build_schema

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

build(census_geometry=None, out=None)

Write the Canada (Toronto) elections schema JSON from the columns the loaders produce.

Parameters:

Name Type Description Default
census_geometry

{"da": dissemination areas}.

None
out

Output file; None = the package schema.

None

Returns:

Type Description

The output path.