Loading array now works
This commit is contained in:
parent
6e1122ffbc
commit
f8c06a239e
@ -5,8 +5,6 @@ app = Flask("Project Numeri")
|
|||||||
def index():
|
def index():
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def RunWeb():
|
def RunWeb():
|
||||||
app.run(debug=True)
|
app.run(debug=True)
|
||||||
|
|
||||||
|
1
main.py
1
main.py
@ -3,4 +3,5 @@ from plots import Cijferlijst
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
cf = Cijferlijst()
|
cf = Cijferlijst()
|
||||||
|
cf.CalculateMedian()
|
||||||
RunWeb()
|
RunWeb()
|
10
plots.py
10
plots.py
@ -1,10 +1,18 @@
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
import numpy as np
|
import numpy as np
|
||||||
GRADE_LIST = pd.read_csv("Cijfers-HerrewijnenJonathan.csv", skiprows=3)
|
|
||||||
|
GRADE_LIST = "Cijfers-HerrewijnenJonathan.csv"
|
||||||
|
|
||||||
class Cijferlijst:
|
class Cijferlijst:
|
||||||
def __init__(self, grade_list=GRADE_LIST):
|
def __init__(self, grade_list=GRADE_LIST):
|
||||||
self.grade_list = grade_list
|
self.grade_list = grade_list
|
||||||
|
self.ps = pd.read_csv(GRADE_LIST, skiprows=2, sep=';')
|
||||||
|
|
||||||
def iets(self):
|
def iets(self):
|
||||||
print(self.grade_list)
|
print(self.grade_list)
|
||||||
|
|
||||||
|
def CalculateMedian(self, subject, year):
|
||||||
|
# Calculates average for all scores without weight!
|
||||||
|
Grades = self.ps['Cijfer(Voortgangsdossier)'].loc[:]
|
||||||
|
print("blub")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user