Skip to content

pycensus.census.countries.andorra.elections

Andorra election results by parish (Consell General 2023, Comunals 2023) and H3.

load_comunals_2023(level='parish', data_dir=None)

Comunal (parish council) elections 2023 (see :func:load_election).

Parameters:

Name Type Description Default
level

"parish" or "h3".

'parish'
data_dir

Folder of the raw downloads; None = the pycensus cache.

None

Returns:

Type Description

The election frame.

load_consell_general_2023(level='parish', data_dir=None)

Consell General election 2023 (see :func:load_election).

Parameters:

Name Type Description Default
level

"parish" or "h3".

'parish'
data_dir

Folder of the raw downloads; None = the pycensus cache.

None

Returns:

Type Description

The election frame.

load_election(scope, year, level='parish', data_dir=None, min_share=0.03)

scope 'national' (Consell General 2023) or 'municipal' (Comunals 2023). level: 'parish' (GEOID AD-0X) or 'h3' (h3_cell, res 8).

Parameters:

Name Type Description Default
scope str

"national", "state" or "municipal".

required
year int

Election year (2023).

required
level str

"parish" or "h3".

'parish'
data_dir Optional[str]

Folder of the raw downloads; None = the pycensus cache.

None
min_share float

Parties above this share get their own columns.

0.03

Returns:

Type Description
DataFrame

The election frame.