4,211
edits
mNo edit summary |
(Some light copyediting of User:Fsargent's work (and earlier work), and noting that the example User:Fsargent isn't (yet) clear to me, but I haven't tried too hard to interpret it.) |
||
Line 1:
[[File:RRV Procedure.svg|thumb|RRV Procedure]]
'''Reweighted
==Procedure==
Line 35:
# For the final seat available, the two highest-scoring candidates remaining runoff, with the candidate preferred (scored higher) by more reweighted ballots winning the final seat.
==Example
Below is some example code, written in [[W:Python (programming language)|Python]] and posted by [[User:Fsargent]]:
<syntaxhighlight lang="python" line>▼
▲<syntaxhighlight lang="python" line="">
import pandas
Line 73 ⟶ 75:
print(seated)
</syntaxhighlight>
<syntaxhighlight lang="" line>▼
Additionally, here's some sample data posted by [[User:Fsargent]]:
▲<syntaxhighlight lang="python" line="">
Red 18.0
Green 10.0
Line 98 ⟶ 102:
dtype: float64
['Red', 'Yellow', 'Blue', 'Green']
</syntaxhighlight>It is unclear to [[User:RobLa]] what this example is supposed to show, but he may look more carefully at the example later.
==Related
If [[Ballot#Approval ballot|approval ballots]] are used,
[[Category:Cardinal voting methods]]
|