swiss_votes is a comprehensive dataset of municipality-level voting outcomes for all Swiss popular votes from 1866 to 2023. This repository enables detailed analysis of voting behavior, trends, and regional variation across nearly 160 years of direct democracy.
-
final_1866_1999.parquet
Municipality-level referendum results (1866–1999), mapped to the municipal boundaries as of 1999. -
final_1866_2023.parquet
Municipality-level referendum results (1866–2023), mapped to the municipal boundaries as of 2023. -
all_combinations_1866_2023.parquet
Complete set of all municipality–vote combinations from 1866 to 2023. Data until 1999 is mapped to the 1999 municipal structure; from 2000 onward, to the 2023 municipal structure.
canton_id: Official numeric ID of the cantoncanton_short: Abbreviation of the cantonmun_id: Official numeric ID of the municipalitymun_name: Name of the municipalityvote_id: Official numeric ID of the popular voteyear: Year the popular vote took placedate: Date of the popular voteyes: Number of yes votesno: Number of no votes
The data files are in Parquet format and can be read using Python (e.g., with pandas or pyarrow), R, or other compatible tools. Example (Python):
import polars as pl
df = pl.read_parquet("final_1866_2023.parquet")
print(df.head())