Skip to content

Commit

Permalink
add tables
Browse files Browse the repository at this point in the history
  • Loading branch information
wmentrekin committed Oct 27, 2020
1 parent 6722800 commit 82fa848
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ def visualize(margins):
def write_results():

#Create CSV for States with closest projected margins
closest_margins_rows[0] = ['State', 'Projected Margin', 'Projected Winner']
closest_margins_fields = ['State', 'Projected Margin', 'Projected Winner']
closest_margins_rows = []
closest_margins_rows.append(closest_margins_fields)
for state in State.states:
row = []
if state.simulations['margin'] < 10:
Expand Down

0 comments on commit 82fa848

Please sign in to comment.