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]