From 98fa7685417a7d81d26b8d429860ee61dfdf3f36 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Tue, 5 Jan 2021 09:14:52 +0100 Subject: [PATCH] format: black formating --- recopytex/csv_extraction.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recopytex/csv_extraction.py b/recopytex/csv_extraction.py index 08e16fa..85e4e6f 100644 --- a/recopytex/csv_extraction.py +++ b/recopytex/csv_extraction.py @@ -17,7 +17,7 @@ def try_replace(x, old, new): def extract_students(df, no_student_columns=NO_ST_COLUMNS.values()): - """ Extract the list of students from df + """Extract the list of students from df :param df: the dataframe :param no_student_columns: columns that are not students @@ -30,7 +30,7 @@ def extract_students(df, no_student_columns=NO_ST_COLUMNS.values()): def flat_df_students( df, no_student_columns=NO_ST_COLUMNS.values(), postprocessing=True ): - """ Flat the dataframe by returning a dataframe with on student on each line + """Flat the dataframe by returning a dataframe with on student on each line :param df: the dataframe (one row per questions) :param no_student_columns: columns that are not students @@ -63,7 +63,7 @@ def flat_df_students( def flat_df_for( df, student, no_student_columns=NO_ST_COLUMNS.values(), postprocessing=True ): - """ Extract the data only for one student + """Extract the data only for one student :param df: the dataframe (one row per questions) :param no_student_columns: columns that are not students @@ -88,7 +88,7 @@ def flat_df_for( def postprocess(df): - """ Postprocessing score dataframe + """Postprocessing score dataframe - Replace na with an empty string - Replace "NOANSWER" with -1