Skip to content

geospatial data layer containing the most recent election results in Brandenburg on municipality level

Notifications You must be signed in to change notification settings

omaliszewska/election_results

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Municipality Boundaries and Election Data Processing

This Jupyter Notebook automates the process of downloading, extracting, and visualizing German municipality boundaries along with processing and merging election data.

Features

  • Download Municipality Boundaries: Fetches administrative boundaries from the Bundesamt für Kartographie und Geodäsie (BKG).
  • Extract and Process Shapefiles: Extracts the required shapefile and saves it as GPKG.
  • Process Election Data: Cleans and restructures election results from an Excel file.
  • Merge Boundaries with Election Data: Joins the processed election data with the municipality shapefile and exports the results as a GeoPackage.

Requirements

Ensure you have the following Python libraries installed:

pip install geopandas pandas matplotlib tqdm contextily requests

Output Files

  • gemeinde_raw.gpkg: Raw administrative boundaries.
  • bb_election_results.gpkg: Processed election data merged with municipality boundaries.

Next steps

  • automating the paths
  • wraping it into functions

About

geospatial data layer containing the most recent election results in Brandenburg on municipality level

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published