From 989a2e6c1bd32843372d2cc935a52e1fd665caf5 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand Date: Sat, 26 Nov 2016 17:35:30 +0300 Subject: [PATCH] more infos in student pov --- notes_tools/tools/df_marks_manip.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/notes_tools/tools/df_marks_manip.py b/notes_tools/tools/df_marks_manip.py index 4ae5162..1b06e64 100644 --- a/notes_tools/tools/df_marks_manip.py +++ b/notes_tools/tools/df_marks_manip.py @@ -384,6 +384,8 @@ def digest_flat_df(flat_df): return df, exo_df, eval_df +# Organize data + def students_pov(quest_df, exo_df, eval_df): """ @@ -421,6 +423,7 @@ def students_pov(quest_df, exo_df, eval_df): for e in eval_df["Eleve"].unique(): eleve = {"Nom":e} e_quest = quest_df[quest_df["Eleve"] == e] + eleve["quest"] = e_quest e_exo = exo_df[exo_df["Eleve"] == e] #e_df = ds_df[ds_df["Eleve"] == e][["Exercice", "Question", "Bareme", "Commentaire", "Niveau", "Mark", "Latex_rep"]] eleve["Total"] = eval_df[eval_df["Eleve"]==e].iloc[0]