3 from csv import DictReader
5 input_file = open("hp_wiki.tsv", 'r', encoding="utf-8")
9 for row in DictReader(input_file, delimiter="\t"):
10 num_edits = num_edits + 1
11 if row["anon"] == "True":
12 num_anon = num_anon + 1
14 prop_anon = num_anon / num_edits
16 print("total edits: {0}".format(num_edits))
17 print("anon edits: {0}".format(num_anon))
18 print("proportion anon: {0}".format(prop_anon))