From 66313af233f390f42dafc0d10dee3df07760ea95 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 15 Oct 2023 22:26:56 -0400 Subject: remove index from table saving to csv --- regenTheExpertTA.py | 2 +- regenWebAssign.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regenTheExpertTA.py b/regenTheExpertTA.py index 81ea437..e521a0a 100755 --- a/regenTheExpertTA.py +++ b/regenTheExpertTA.py @@ -81,7 +81,7 @@ for c in d.columns: -d.to_csv('TheExperTA.csv') +d.to_csv('TheExperTA.csv', index=False) # now import to sqlite3 diff --git a/regenWebAssign.py b/regenWebAssign.py index 9030bb2..007dc2d 100755 --- a/regenWebAssign.py +++ b/regenWebAssign.py @@ -42,7 +42,7 @@ d['UserName'].replace('phanng@hotmail.com@tj.va$', 'kphan@wm.edu', regex=True, i 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') +d.to_csv('WebAssign.csv', index=False) # now import to sqlite3 -- cgit v1.2.3