Skip to content

Commit

Permalink
Merge pull request #715 from dinukadesilva/gh-714-fix-total-polled-vo…
Browse files Browse the repository at this point in the history
…te-count-in-pe-r2

gh-714: Fix the total polled vote count on PE-R2 letter
  • Loading branch information
dinukadesilva authored Jul 18, 2020
2 parents 6ebda96 + 576ef6f commit a265667
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions results-tabulation-api/ext/ExtendedTallySheet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,8 @@ def get_area_wise_vote_count_result(self):
df = self.df.copy()
df['numValue'] = df['numValue'].astype(float)

df = df.loc[(df['templateRowType'] == "PARTY_WISE_VOTE") | (df['templateRowType'] == "REJECTED_VOTE")]

df = df.groupby(
['areaId', "areaName"]
).agg({
Expand Down

0 comments on commit a265667

Please sign in to comment.