Skip to content

Commit

Permalink
Comments now defaults to saying something wasn't graded
Browse files Browse the repository at this point in the history
  • Loading branch information
samogden committed Feb 22, 2022
1 parent 1842b64 commit 453ba67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grading/convert_xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def load_excel_to_students_dict(
# Combines alternating columns and assumes they're (score, comment) pairs
question_comment_column_header_pairs = list(zip(df.columns[3::2], df.columns[4::2]))

df["Grader"] = df["Grader"].fillna("(This assignment seems to have not been graded. Please reach out to ask why.)")
for idx, (q_header, c_header) in enumerate(question_comment_column_header_pairs):
df[q_header] = df[q_header].fillna(default_score_func(idx))
df[c_header] = df[c_header].fillna(default_answer_func(idx))
Expand Down

0 comments on commit 453ba67

Please sign in to comment.