To receive notifications about scheduled maintenance, please subscribe to the mailing-list You can subscribe to the mailing-list at

Commit d6652bb1 authored by scmalte's avatar scmalte
Browse files started working on script that combines cluster and code-export data... started working on script that combines cluster and code-export data to produce final report
parent 76420566
import logging
import csv
import pandas as pd
from .utils import logging as logutils
def main(
clusters_csv = pd.read_csv(clusters_summary_csv_file)
students_csv = pd.read_csv(cx_course_students_csv_file)
clusters = clusters_csv.groupby("cluster_id")
for name, cluster in clusters:
ids = pd.concat([cluster["id1"], cluster["id2"]], ignore_index=False)
# print(cluster[["id1", "id2"]].unique())
# for wtf in clusters[["id1", "id2"]]:
# print(wtf)
# for cluster in clusters.groups:
# print(cluster)
# for cluster in clusters.groupby("cluster_id"):
# print(cluster["id1"])
if __name__ == "__main__":
......@@ -22,6 +22,7 @@ setup(
# scripts=['bin/mossutils-moss'],
......@@ -29,7 +30,8 @@ setup(
"console_scripts": [
'mu-moss = mossutils.moss:main',
'mu-revise = mossutils.revise:main',
'mu-cluster = mossutils.cluster:main'
'mu-cluster = mossutils.cluster:main',
'mu-aggr = mossutils.aggr:main'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment