The upcoming Nationalratswahlen 2023 in Kanton Basel-Stadt presents a unique scenario due to the reduction of one seat in Basel-Stadt, resulting in a total of four seats down from the previous 5, and all five of the previous seat holders are seeking re-election. To facilitate a comprehensive understanding of the potential seat distribution, I have developed Wahlen2023, an open-source computational tool using Python and Streamlit. The tool is accessible at wahlen2023.streamlit.app.

Computational Model for the Nationalratswahlen 2023 in Kanton Basel-Stadt

Wahlen2023 is a Python-based application that leverages the Streamlit library to deliver a seamless user experience. The tool features a sidebar for users to input the number of votes for each political party. Upon input, the simulation can be executed in the main field.

The computational model implemented in Wahlen2023 is based on the “Bundesgesetz über die politischen Rechte” Art. 40/41. The algorithm processes the user inputs and computes the seat distribution accordingly. The full text of the law can be accessed here.

Open Source Initiative and GitHub Repository

In line with the principles of open-source software, Wahlen2023 allows developers and enthusiasts to explore, contribute, and modify the tool. The source code is hosted on GitHub, where detailed documentation is available.

Utilizing Wahlen2023

I invite all interested people to utilize Wahlen2023 to gain insights into the upcoming Nationalratswahlen 2023 in Kanton Basel-Stadt. The tool can be accessed at wahlen2023.streamlit.app and offers an informative and enjoyable experience in analyzing election data.

I look forward to your contributions and feedback. Happy exploring.