Electopy is a simple Python library for analysis and exploration of General Election Results in Spain
Aggregate votes by voting region and calculate the Elected Members of Parliament from each voting region. Obtain the composition of the Parliament given an election Result
Show a map of Spain with voting regions, with colour coding for the most voted party in that region
Calculate an election result if a shares of voters from one political party vote another political party
Compare two election results and the differences of the Parliament composition
- Use different flow rates by voting region, instead of a uniform flow
- More complex voter flows
- Experiment with alternative voting systems, and see their differences given the same election result