Closed endolith closed 2 years ago
If candidates are tied in runoff, the tiebreaker returns an index instead of a string.
The first example I tried for the docstring returned 0:
>>> import pandas as pd >>> ballots = pd.DataFrame(columns=['Allie', 'Billy', 'Candace'], data=[*2*[[5, 4, 1]], *1*[[2, 5, 0]], *3*[[0, 4, 5]],]) >>> print(ballots) Allie Billy Candace 0 5 4 1 1 5 4 1 2 2 5 0 3 0 4 5 4 0 4 5 5 0 4 5 >>> print(STAR(ballots)) 0
If candidates are tied in runoff, the tiebreaker returns an index instead of a string.
The first example I tried for the docstring returned 0: