Allocated Score: Difference between revisions
→Python Implementation: update code
Dr. Edmonds (talk | contribs) (→Python Implementation: bugfix) |
Dr. Edmonds (talk | contribs) (→Python Implementation: update code) |
||
Line 36:
winner_list = []
while len(winner_list) < W:
weighted_scores = ballots.multiply(ballot_weight, axis="index")
#Select winner
w =
#Add winner to list
Line 44 ⟶ 46:
#Create lists for manipulation
cand_df = pd.concat([ballot_weight,
cand_df_sort = cand_df.sort_values(by=[w], ascending=False).copy()
|