Skip to content

Commit

Permalink
Added numFormulaCells.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Jan 13, 2020
1 parent 7775685 commit 0a8d52e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/json-stats-to-csv.py
Expand Up @@ -32,7 +32,8 @@ def process_workbook(dirname, fname, output_file):
'suspiciousRanges' : workbook[sheet]['suspiciousRanges'],
'suspiciousCells' : workbook[sheet]['suspiciousCells'],
'suspiciousnessThreshold' : workbook[sheet]['suspiciousnessThreshold'],
'formattingDiscount' : workbook[sheet]['formattingDiscount'] }
'formattingDiscount' : workbook[sheet]['formattingDiscount'],
'numFormulaCells' : workbook[sheet]['numFormulaCells'] }
writer.writerow(s)


Expand All @@ -49,7 +50,7 @@ def process_workbook(dirname, fname, output_file):

# Write the header.
with open(args.output, 'w') as csvfile:
fieldnames = ['workbookName', 'worksheet', 'suspiciousRanges', 'suspiciousCells', 'suspiciousnessThreshold', 'formattingDiscount']
fieldnames = ['workbookName', 'worksheet', 'suspiciousRanges', 'suspiciousCells', 'suspiciousnessThreshold', 'formattingDiscount', 'numFormulaCells']
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
writer.writeheader()

Expand Down

0 comments on commit 0a8d52e

Please sign in to comment.