Equal-Vote / starpy

Python implementation of the STAR Voting system
https://www.starvoting.org/
BSD 3-Clause "New" or "Revised" License
8 stars 4 forks source link

Add csv/text file reader #15

Open mikefranze opened 2 years ago

mikefranze commented 2 years ago

Should this be another optional input format to the main STAR function? As in you could either pass in the ballots pandas dataframe, summary data, or filename to read data from? Or should we create a seperate function to parse csv into pandas dataframe and pass into main STAR function?

endolith commented 2 years ago

I think it should be a separate function so each can be tested etc. Then maybe a command line interface wrapper that does the whole process? python something.py election.csv?