summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-10-25 13:50:04 +0200
committerPacien TRAN-GIRARD2014-10-25 13:50:04 +0200
commit8410d88686364f4c6a77cb9bf276b9d3f53bfa61 (patch)
treecb0da77bd4ef06a53e11fbf9b8adb52b07ecd4cf
parent5d341830957fac505b9b4ad4120a95a844c4b3f2 (diff)
downloadwikistats-8410d88686364f4c6a77cb9bf276b9d3f53bfa61.tar.gz
Add stats object
-rw-r--r--main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.py b/main.py
index da7c6ae..ee8c3a7 100644
--- a/main.py
+++ b/main.py
@@ -65,6 +65,7 @@ if OPEN_FILES:
65# BAN DURATION STATS 65# BAN DURATION STATS
66 66
67with open(STATS_FILE, "w") as stats_file: 67with open(STATS_FILE, "w") as stats_file:
68 stats_file.write("Ban duration:\n")
68 stats_file.write("Mean: %.2f days\n" % np.mean(ban_durations)) 69 stats_file.write("Mean: %.2f days\n" % np.mean(ban_durations))
69 stats_file.write("Median: %.2f days\n" % np.median(ban_durations)) 70 stats_file.write("Median: %.2f days\n" % np.median(ban_durations))
70 stats_file.write("Deviation: %.2f\n" % np.std(ban_durations)) 71 stats_file.write("Deviation: %.2f\n" % np.std(ban_durations))