select_contains in eval_tools
This commit is contained in:
parent
2645dc0c03
commit
2a95030282
|
@ -18,6 +18,19 @@ def select(quest_df, exo_df, eval_df, evalname):
|
|||
ev = eval_df[eval_df["Nom"] == evalname]
|
||||
return qu, exo, ev
|
||||
|
||||
def select_contains(quest_df, exo_df, eval_df, name_part):
|
||||
""" Return quest, exo and eval rows which contains name_part
|
||||
|
||||
:param quest_df: TODO
|
||||
:param exo_df: TODO
|
||||
:param eval_df: TODO
|
||||
|
||||
"""
|
||||
qu = quest_df[quest_df["Nom"].str.contains(name_part)]
|
||||
exo = exo_df[exo_df["Nom"].str.contains(name_part)]
|
||||
ev = eval_df[eval_df["Nom"].str.contains(name_part)]
|
||||
return qu, exo, ev
|
||||
|
||||
def get_present_absent(eval_df):
|
||||
""" Return list of student who where present (Mark > 0) and
|
||||
the list of those who weren't
|
||||
|
|
Loading…
Reference in New Issue