Skip to content

pycensus.census.countries.eu.lau

Eurostat GISCO LAU (municipalities) with population, EU-wide (resolution class low).

load(countries, year=None, data_dir=None)

LAU municipalities of countries with population and area.

Parameters:

Name Type Description Default
countries Union[str, Iterable[str]]

Eurostat or ISO2 code(s).

required
year Optional[int]

a fixed LAU vintage; None = the latest vintage with population, chosen per country.

None
data_dir Optional[str]

Root of the raw cache.

None

Returns:

Type Description
GeoDataFrame

GeoDataFrame with GEOID (GISCO id), country, lau_id, name, population, landAreaKm2,

GeoDataFrame

year (vintage used) and geometry (EPSG:4326).

Raises:

Type Description
ValueError

if a country has no population in the requested (or any wired) vintage.

vintage_by_country(data_dir=None)

For every country, the latest LAU vintage in which it reported population.

Parameters:

Name Type Description Default
data_dir Optional[str]

Root of the raw cache.

None

Returns:

Type Description
Dict[str, int]

{eurostat country code: year}; countries that never reported are absent.