Added: Student Ranking
This commit is contained in:
33
assets/Student_list.csv
Normal file
33
assets/Student_list.csv
Normal file
@@ -0,0 +1,33 @@
|
||||
First Name,Last Name,Sex,Tutorial 1,Tutorial 2,Extended Applications,Numpy & MatPlotLib,SciPy,Monte Carlo,Pandas & Seaborn,Folium
|
||||
Abdalaziz,Abunjaila,Male,30.5,15,18,28,17,17,17,22
|
||||
Marleen,Adolphi,Female,29.5,15,18,32,19,0,17,24
|
||||
Aurela,Brahimi,Female,17.5,15,15.5,26,16,17,19,16
|
||||
Cam Thu,Do,Female,31,15,18,34,19,20,21.5,22
|
||||
Nova,Eib,Female,31,15,15,34,20,20,21,27
|
||||
Nele,Grundke,Female,23.5,13,16,28,20,17,21,18
|
||||
Anna,Grünewald,Female,12,14,16,29,16,15,19,9
|
||||
Yannik,Haupt,Male,18,6,14,21,13,2,9,0
|
||||
Janna,Heiny,Female,30,15,18,33,18,20,22,25
|
||||
Milena,Krieger,Female,30,15,18,33,20,20,21.5,26
|
||||
Julia,Limbach,Female,27.5,12,18,29,11,19,17.5,26
|
||||
Viktoria,Litza,Female,21.5,15,18,27,13,20,22,21
|
||||
Manthey,Leonie,Female,28.5,14,18,29,20,10,18,23
|
||||
Izabel,Mike,Female,29.5,15,15,35,11,4,19,21
|
||||
Lea,Noglik,Female,22.5,15,17,34,13,10,20,0
|
||||
Donika,Nuhiu,Female,31,13.5,18,35,14,10,17,18
|
||||
Julia,Renner,Female,27.5,10,14,0,20,17,11,20
|
||||
Fabian,Rothberger,Male,30.5,15,18,34,17,17,19,22
|
||||
Natascha,Rott,Female,29.5,12,18,32,19,20,21,26
|
||||
Isabel,Rudolf,Female,27.5,9,17,34,16,19,19,21
|
||||
Melina,Sablotny,Female,31,15,18,33,20,20,21,19
|
||||
Alea,Schleier,Female,27,14,18,34,16,18,21.5,22
|
||||
Flemming,Schur,Male,29.5,15,17,34,19,20,19,22
|
||||
Marie,Seeger,Female,27.5,15,18,32,14,9,17,22
|
||||
Lucy,Thiele,Female,27.5,15,18,27,20,17,19,18
|
||||
Lara,Troschke,Female,28.5,14,17,28,13,19,21,25
|
||||
Inga-Brit,Turschner,Female,25.5,14,18,34,20,16,19,22
|
||||
Alea,Unger,Female,30,12,18,31,20,20,21,22
|
||||
Marie,Wallbaum,Female,28.5,14,18,34,17,20,19,24
|
||||
Katharina,Walz,Female,31,15,18,31,19,19,17,24
|
||||
Xiaowei,Wang,Male,30.5,14,18,26,19,17,0,0
|
||||
Lilly-Lu,Warnken,Female,30,15,18,30,14,17,19,14
|
|
BIN
assets/Student_list.xlsx
Normal file
BIN
assets/Student_list.xlsx
Normal file
Binary file not shown.
42
assets/convert.py
Normal file
42
assets/convert.py
Normal file
@@ -0,0 +1,42 @@
|
||||
import pandas as pd
|
||||
import pprint
|
||||
import sys
|
||||
sys.path.append('..')
|
||||
from model import *
|
||||
|
||||
df = pd.read_csv("Student_list.csv")
|
||||
courses = {
|
||||
'Tutorial 1': 31,
|
||||
'Tutorial 2': 15,
|
||||
'Extended Applications': 18,
|
||||
'Numpy & MatPlotLib': 35,
|
||||
'SciPy': 20,
|
||||
'Monte Carlo': 20,
|
||||
'Pandas & Seaborn': 22,
|
||||
'Folium': 27
|
||||
}
|
||||
|
||||
# Create Class
|
||||
clas = Class.create(name='WiSe 24/25')
|
||||
#print(clas.id)
|
||||
|
||||
# Create Courses
|
||||
for k, v in courses.items():
|
||||
Lecture.create(title=k, points=v, class_id=clas.id)
|
||||
#print(l.title, l.points, l.class_id, l.id)
|
||||
|
||||
for index, row in df.iterrows():
|
||||
s = Student.create(
|
||||
prename=row["First Name"],
|
||||
surname=row["Last Name"],
|
||||
sex=row["Sex"],
|
||||
class_id=clas.id
|
||||
)
|
||||
|
||||
for title, points in list(row.to_dict().items())[3:]:
|
||||
Submission.create(
|
||||
student_id=s.id,
|
||||
lecture_id=Lecture.select().where(Lecture.title == title),
|
||||
points=points
|
||||
)
|
||||
|
BIN
assets/test.db
Normal file
BIN
assets/test.db
Normal file
Binary file not shown.
Reference in New Issue
Block a user