pycensus.census.countries.spain.valor_tasado.loader¶
Valor tasado medio de vivienda libre (EUR/m2), municipalities above 25,000 inhabitants, quarterly (Boletin Online, table 4).
Technical aspects
https://apps.fomento.gob.es/BoletinOnline2/sedal/35103500.XLS (verified 2026-10-25, 4 MB, one sheet per quarter 'T1A2005'..'T2A2026').
Rows carry province and municipality NAMES only (no INE code): the join to 5-digit codes uses the SERPAVI 'Municipios' sheet
(province+municipality names, accent/case/article-insensitive); unmatched rows keep GEOID NaN and are reported in attrs['unmatched'].
Needs xlrd (legacy .xls). Native resolution: municipality (about 480 municipalities), so only for coarse H3 levels / popups.
load_attributes(data_dir=None, quarters=None)
¶
Return GEOID (5-digit), province/municipality names and valor_tasado_{new,old,total}_<QnYYYY> (EUR/m2) and
valor_tasado_n_<QnYYYY> (appraisals) for the given sheet names (default: the latest sheet and the one 4 and 40 quarters earlier).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_dir
|
Optional[str]
|
Folder of the raw downloads; |
None
|
quarters
|
Optional[list]
|
Sheet names ( |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
One row per municipality. |