Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHettrick committed Dec 20, 2017
1 parent bde1fcb commit 16f4d3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comparison_new_old_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ def differences(dfs_summary_comparison):
percentages = []

for current in LIST_OF_RESULT_NAMES:
question_list.append(current[:-4])
question_list.append(current[:-4])
# Need the abs() to ensure that positive and negative differences don't cancel each other
# and make the results look better than they are
percentages.append(round(abs(dfs_summary_comparison[current]['new_minus_old_percentage']).mean(),1))

totals = {'question': question_list, 'av_percent_difference': percentages}
Expand Down

0 comments on commit 16f4d3b

Please sign in to comment.