pycensus.census.countries.spain.censo2021.housing¶
Census 2021 housing columns per census section from the INE SDC21 API.
Technical aspects
The API cuts a request off after about two minutes. At section level only the
two-category dwelling-use cross and the household-size average finish in time;
tenure, year built, floor space and building type finish only at district level
(ID_RESIDENCIA_N4, the first 7 digits of the 10-digit section code), so those
shares are district-native and repeated on every section of the district.
Average floor space and dwelling age (MEDIA_*) come back empty at every level.
Variable names come from https://www.ine.es/censos2021/SDC21_variables_disponibles.xlsx.
load_section_housing(data_dir=None)
¶
One row per 10-digit section (GEOID): dwelling use, household size, district-level tenure/age/area/building shares.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_dir
|
Optional[str]
|
Folder of the raw downloads; |
None
|