aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-10-30 15:53:44 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-10-30 15:53:44 -0400
commit54635ba2b81fa47ef25dee7aed7b179ef4b91975 (patch)
tree48a3f5892fdcc0054c1308c9980db73c00bb13c8
parent97e781849f648e2edd3994150b8983969bf7bdb8 (diff)
downloadGradeBook-54635ba2b81fa47ef25dee7aed7b179ef4b91975.tar.gz
GradeBook-54635ba2b81fa47ef25dee7aed7b179ef4b91975.zip
added fixes for some special user
-rwxr-xr-xregenWebAssign.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/regenWebAssign.py b/regenWebAssign.py
index ca6ffd4..9030bb2 100755
--- a/regenWebAssign.py
+++ b/regenWebAssign.py
@@ -37,6 +37,10 @@ index = d[c] == 'NS'
d[index] = np.nan
d['UserName'].replace('@wm$', '', regex=True, inplace=True)
d['UserName'].replace('@email.wm.edu$', '@wm.edu', regex=True, inplace=True)
+# hand tuned fixes
+d['UserName'].replace('phanng@hotmail.com@tj.va$', 'kphan@wm.edu', regex=True, inplace=True)
+d['UserName'].replace('chipkd2001@gmail.com$', 'ckdangerio@wm.edu', regex=True, inplace=True)
+d['UserName'].replace('eliasarivera@live.com@schs.va$', 'earivera@wm.edu', regex=True, inplace=True)
d.to_csv('WebAssign.csv')