Open jontingvold opened 4 years ago
Would you consider a pull request if I did this?
Probably faster for big tables.
In algorithms with weights and linear summations, it will be faster. In algorithms that require looping through candidates and ballots, it will not make much difference.
Rewrite to take in tables with candidate as columns and each row is the ranking of the given candidates (if any ranking given).
Rewrite to use Pandas. Easier to calculate. Easier to read code. Probably faster for big tables. Easier to reuse for analysis.