Add test files for PandasTutorial.py
This commit is contained in:
1 parent
9134f059da
commit
5d7063afa2
4 files changed
+17
No files matched your search
@@ -15,3 +15,7 @@ def export_csv_with_name_and_grade(student_name: str, grade: str):
|
||||
]
|
||||
|
||||
solution[["Student_ID", "Class"]].to_csv("files/output.csv", index=False)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
export_csv_with_name_and_grade("Bob", "A")
|
||||
@@ -0,0 +1,8 @@
|
||||
ID,Class,Grade
|
||||
32155,English,A
|
||||
32155,History,B
|
||||
32155,Science,B
|
||||
43226,English,C
|
||||
43226,Math,A
|
||||
43226,Science,A
|
||||
43226,History,B
|
||||
|
@@ -0,0 +1,2 @@
|
||||
Student_ID,Class
|
||||
32155,English
|
||||
|
@@ -0,0 +1,3 @@
|
||||
Name,Student_ID
|
||||
Bob,32155
|
||||
Ron,43226
|
||||
|
Reference in new issue
Block a user