Skip to content

Commit

Permalink
Update decoder4.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gadhalevy authored Jun 16, 2024
1 parent 42e6b28 commit daa4c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoder4.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit daa4c94

Please sign in to comment.