Skip to content

Commit

Permalink
maintain a consistent order for the candidates report
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenglimEar committed Jul 16, 2024
1 parent fd68dd5 commit 9d0cb41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/report-candidates
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def main():
candidates=[]
add_candidates(candidates)
df = pl.DataFrame(candidates)
df = df.sort(['election','filename'])
#df.to_csv('build/candidates.csv', index=False)
df.write_csv('build/candidates.csv')
#df.to_excel("build/candidates.xlsx", sheet_name="Totals Per Candidates", index=False)
Expand Down

0 comments on commit 9d0cb41

Please sign in to comment.