Skip to content

Commit 8d25279

Browse files
authored
Merge pull request #137 from realpython/fix-gradebook
Remove unnecessary email converter
2 parents e2f6bf8 + 58ee864 commit 8d25279

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

pandas-gradebook-project/01-loading-the-data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
hw_exam_grades = pd.read_csv(
2929
DATA_FOLDER / "hw_exam_grades.csv",
30-
converters={"SID": str.lower, "Email Address": str.lower},
30+
converters={"SID": str.lower},
3131
usecols=lambda x: "Submission" not in x,
3232
index_col="SID",
3333
)

pandas-gradebook-project/02-merging-dataframes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
hw_exam_grades = pd.read_csv(
2929
DATA_FOLDER / "hw_exam_grades.csv",
30-
converters={"SID": str.lower, "Email Address": str.lower},
30+
converters={"SID": str.lower},
3131
usecols=lambda x: "Submission" not in x,
3232
index_col="SID",
3333
)

pandas-gradebook-project/03-calculating-grades.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
hw_exam_grades = pd.read_csv(
3030
DATA_FOLDER / "hw_exam_grades.csv",
31-
converters={"SID": str.lower, "Email Address": str.lower},
31+
converters={"SID": str.lower},
3232
usecols=lambda x: "Submission" not in x,
3333
index_col="SID",
3434
)

pandas-gradebook-project/04-grouping-the-data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
hw_exam_grades = pd.read_csv(
3030
DATA_FOLDER / "hw_exam_grades.csv",
31-
converters={"SID": str.lower, "Email Address": str.lower},
31+
converters={"SID": str.lower},
3232
usecols=lambda x: "Submission" not in x,
3333
index_col="SID",
3434
)

pandas-gradebook-project/05-plotting-summary-statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
hw_exam_grades = pd.read_csv(
3232
DATA_FOLDER / "hw_exam_grades.csv",
33-
converters={"SID": str.lower, "Email Address": str.lower},
33+
converters={"SID": str.lower},
3434
usecols=lambda x: "Submission" not in x,
3535
index_col="SID",
3636
)

pandas-gradebook-project/06-final-gradebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
hw_exam_grades = pd.read_csv(
2828
DATA_FOLDER / "hw_exam_grades.csv",
29-
converters={"SID": str.lower, "Email Address": str.lower},
29+
converters={"SID": str.lower},
3030
usecols=lambda x: "Submission" not in x,
3131
index_col="SID",
3232
)

0 commit comments

Comments
 (0)