pycensus.census.countries.euskadi.eustat.housing_income¶
Basque housing-market and income tables (EMAL rent, Eustat section income / dwellings / sale price). All return DataFrames keyed by GEOID.
GEOIDs follow spain.adrh.eustat_sections: 10-digit INE section = province(2)+municipality(3)+district(2)+section(3); 5-digit = INE municipality.
Raw downloads are cached under <data_dir>/raw/eustat_housing (default data/euskadi; keep outside git).
Sources (verified live 2026-10): EMAL (rental-deposit statistic, Gobierno Vasco, CC BY): opendata.euskadi.eus/contenidos/estadistica/122417_emal_tablas_estad/opendata/ EMAL.-Barrios-Municipios.-2016-2025_es.xlsx (municipalities >5,000 inh. T2.x annual; Donostia zones/districts/barrios T8.x) and EMAL-2016-2025_es.xlsx (province / municipality-size class T2.x). Eustat income by section 2019 (CC BY): eustat.eus/elementos/xls0017461_c.csv (Gipuzkoa), xls0017445_c.csv (Araba), xls0017462_c.csv (Bizkaia). Eustat dwellings by district and section, Gipuzkoa 01/01/2024: xls0018855_c.csv (includes tenure: owned / rented / other, %). Eustat sale price per m2 (Registradores) by province: xls0019433_c.csv.
load_emal_municipal(year=2025, data_dir=None, provinces=('01', '20', '48'))
¶
EMAL by municipality (>5,000 inhabitants), contracts started in year (2016-2025). GEOID = 5-digit INE municipality.
emalRentM2 (EUR/m2 built/month, average), emalRentMonthly (EUR/month), emalDeposits (number of rental deposits).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
year
|
int
|
Contract start year (2016-2025). |
2025
|
data_dir
|
Optional[str]
|
Folder of the raw downloads; |
None
|
provinces
|
2-digit province codes. |
('01', '20', '48')
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
One row per municipality. |
load_emal_donostia(year=2025, data_dir=None)
¶
EMAL rent per m2 (EUR/m2/month) inside Donostia/San Sebastian: OFIN zones, districts and barrios (sub-municipal; not census-section keyed).
Columns: level ('zone'|'district'|'barrio'), code, name, emalRentM2, emalRentMonthly, emalDeposits. Municipal GEOID 20069.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
year
|
int
|
Contract start year. |
2025
|
data_dir
|
Optional[str]
|
Folder of the raw downloads; |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
One row per zone, district and barrio. |
load_emal_size_context(year=2025, data_dir=None)
¶
EMAL rent per m2 by territory and municipality-size class (context columns): rows 'Euskadi', provinces, size classes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
year
|
int
|
Contract start year. |
2025
|
data_dir
|
Optional[str]
|
Folder of the raw downloads; |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
One row per territory or size class. |
load_income_sections(provinces=('20',), data_dir=None)
¶
Eustat mean personal income (EUR, population 18+) 2019 by census section (section 00 rows = municipality totals are dropped).
Columns: GEOID (10-digit), incomeTotal, incomeWork, incomeMovableCapital, incomeRealEstateCapital, incomeActivity, incomeTransfers, incomeDisposable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provinces
|
2-digit province codes. |
('20',)
|
|
data_dir
|
Optional[str]
|
Folder of the raw downloads; |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
One row per census section. |
load_dwellings_sections(data_dir=None)
¶
Eustat dwellings by census section of Gipuzkoa (01/01/2024), incl. tenure shares (% of main family dwellings).
Columns: GEOID, dwellingsTotal, dwellingsFamily, dwellingsMain, dwellingsOther, dwellingAvgAge, dwellingAvgUsefulArea, dwellingsOwnedPct, dwellingsRentedPct, dwellingsOtherTenurePct.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_dir
|
Optional[str]
|
Folder of the raw downloads; |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
One row per census section. |
load_sale_price_province(data_dir=None)
¶
Eustat mean sale price per m2 built of free housing (EUR/m2), by province and quarter (Registradores). Context column (province-wide).
Columns: year, quarter, province (GEOID 2-digit or 'EUS'), type ('total'|'new'|'used'), salePriceM2.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_dir
|
Optional[str]
|
Folder of the raw downloads; |
None
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
One row per province, quarter and type. |