jontingvold / pyrankvote

PyRankVote is a python library for different ranked-choice voting systems, like IRV, STV and PBV. Created in June 2019.
MIT License
52 stars 16 forks source link

Rewrite to use tables and Pandas #7

Open jontingvold opened 4 years ago

jontingvold commented 4 years ago

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.

sinan-ozel commented 4 months 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.