update the harry potter for morning lecture
[harrypotter-wikipedia-cdsw] / hpwp-minor.py
diff --git a/hpwp-minor.py b/hpwp-minor.py
deleted file mode 100644 (file)
index 4e173f2..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-from csv import DictReader
-
-input_file = open("hp_wiki.csv", 'r')
-
-num_edits = 0
-num_anon = 0
-for row in DictReader(input_file):
-    num_edits = num_edits + 1
-    if row["anon"] == "False":
-        num_anon = num_anon + 1
-
-prop_anon = num_anon / num_edits
-
-print("total edits: %s" % num_edits)
-print("anon edits: %s" % num_anon)
-print("proportion anon: %s" % prop_anon)

Benjamin Mako Hill || Want to submit a patch?