Skip to content

pycensus.census.countries.spain.censo2021.schema

Common-schema column definitions for Spain's Censo 2021 (SDC21) source.

This module loads schema from spain/schema/censo2021_schema.json. Unlike the Padron (spain.ine) schema, each feature here isn't a single raw column code -- it's a (table, metric, variable, category_value) lookup into INE's SDC21 API (see :mod:pycensus.census.countries.spain.censo2021.api and loader.py). :data:FEATURE_FETCH_SPEC carries that fetch metadata, keyed by bare feature name, for the loader to use; :data:SCHEMA itself only carries the naming/aggregation metadata every other source's schema carries.