From daa4c94a1ffcf6b6a4be72eef94ddeb2a3f811a8 Mon Sep 17 00:00:00 2001 From: gadhalevy Date: Sun, 16 Jun 2024 14:12:21 +0300 Subject: [PATCH] Update decoder4.py --- decoder4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decoder4.py b/decoder4.py index 6512eb8..41f3ec6 100644 --- a/decoder4.py +++ b/decoder4.py @@ -119,8 +119,8 @@ def comp_grades(lab): groups = groups.astype({'group': 'int8'}) # groups.loc[(groups.num == 1), 'IOT'] = 31 avg = sum(st.session_state['grades']) / len(st.session_state['grades']) - groups.loc[(groups.num == int(st.session_state['team'])), lab] = avg - groups.loc[(groups.num == int(st.session_state['team'])), lab + '_rem'] = ' '.join(st.session_state.remarks) + groups.loc[(groups.group == int(st.session_state['team'])), lab] = avg + groups.loc[(groups.group == int(st.session_state['team'])), lab + '_rem'] = ' '.join(st.session_state.remarks) # st.dataframe(groups) groups.to_csv('grades.csv', index=False) return groups