2024-russian-presidential-election-exitpolls-abroad.svg
Size of this PNG preview of this SVG file:
800 × 410 pixels
.
Other resolutions:
320 × 164 pixels
|
640 × 328 pixels
|
1,024 × 525 pixels
|
1,280 × 656 pixels
|
2,560 × 1,312 pixels
|
1,104 × 566 pixels
.
Summary
Description 2024-russian-presidential-election-exitpolls-abroad.svg |
English:
Based on the unofficial data taken from here:
https://voteabroad.info/ The data is still uploading, so this map may not be up to date The method is as follows:
For countries with multiple polling stations, the following code was used: def smart_to_int(value: float) -> int: return int(value+0.5) class Station:
def __init__(self, voters: int, putin_percentage: int, davankov_percentage: int, refused_percentage: int) -> None: self.voters = voters self.putin_percentage = putin_percentage self.davankov_percentage = davankov_percentage self.refused_percentage = refused_percentage self.get_votes() def get_votes(self): adjusted_percentage = 100 - self.refused_percentage self.putin_voters = smart_to_int(self.voters *self.putin_percentage /adjusted_percentage) self.davankov_voters = smart_to_int(self.voters *self.davankov_percentage /adjusted_percentage) def __repr__(self): return (f"Station({self.voters}, {self.putin_percentage}, " f"{self.davankov_percentage}, {self.refused_percentage})") def get_total(*args: Station): total_votes = 0 putin_votes = 0 davankov_votes = 0 for station in args: total_votes += station.voters putin_votes += station.putin_voters davankov_votes += station.davankov_voters return putin_votes/total_votes*100, davankov_votes/total_votes*100 city1 = Station(2391, 10, 35, 38) city2 = Station(2572, 31, 28, 24) print(get_total(city1, city2)) |
Date | |
Source | Own work |
Author | GlebRyabov |
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication . | |
The person who associated a work with this deed has dedicated the work to the
public domain
by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.en CC0 Creative Commons Zero, Public Domain Dedication false false |