Commit 74563228 authored by scmalte's avatar scmalte
Browse files

aggr.py: round TotalScore column

parent fc476fff
...@@ -13,10 +13,11 @@ def main( ...@@ -13,10 +13,11 @@ def main(
clusters_csv: pd.DataFrame = pd.read_csv(clusters_summary_csv_file) clusters_csv: pd.DataFrame = pd.read_csv(clusters_summary_csv_file)
# Read CX course data, reduce to relevant columns, set index column # Read CX course data, reduce to relevant columns, truncate TotalScore (which are floats), set index column
relevant_course_columns = ["Legi", "Lastname", "Firstname", "Email", "Gender", "TotalScore"] relevant_course_columns = ["Legi", "Lastname", "Firstname", "Email", "Gender", "TotalScore"]
course_csv: pd.DataFrame = pd.read_csv(cx_course_students_csv_file) course_csv: pd.DataFrame = pd.read_csv(cx_course_students_csv_file)
course_csv = course_csv[relevant_course_columns] course_csv = course_csv[relevant_course_columns]
course_csv["TotalScore"] = course_csv["TotalScore"].round(0)
course_csv.set_index("Legi", inplace=True) course_csv.set_index("Legi", inplace=True)
## TODO: Remove staff from course_csv ## TODO: Remove staff from course_csv
......
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