diff options
author | Pacien TRAN-GIRARD | 2014-10-25 13:50:04 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-10-25 13:50:04 +0200 |
commit | 8410d88686364f4c6a77cb9bf276b9d3f53bfa61 (patch) | |
tree | cb0da77bd4ef06a53e11fbf9b8adb52b07ecd4cf | |
parent | 5d341830957fac505b9b4ad4120a95a844c4b3f2 (diff) | |
download | wikistats-8410d88686364f4c6a77cb9bf276b9d3f53bfa61.tar.gz |
Add stats object
-rw-r--r-- | main.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -65,6 +65,7 @@ if OPEN_FILES: | |||
65 | # BAN DURATION STATS | 65 | # BAN DURATION STATS |
66 | 66 | ||
67 | with open(STATS_FILE, "w") as stats_file: | 67 | with 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)) |