Loading array now works

This commit is contained in:
Eljakim Herrewijnen 2021-09-15 23:05:34 +02:00
parent 6e1122ffbc
commit f8c06a239e
3 changed files with 11 additions and 4 deletions

View File

@ -5,8 +5,6 @@ app = Flask("Project Numeri")
def index():
return render_template('index.html')
def RunWeb():
app.run(debug=True)

View File

@ -3,4 +3,5 @@ from plots import Cijferlijst
if __name__ == "__main__":
cf = Cijferlijst()
cf.CalculateMedian()
RunWeb()

View File

@ -1,10 +1,18 @@
import pandas as pd
import numpy as np
GRADE_LIST = pd.read_csv("Cijfers-HerrewijnenJonathan.csv", skiprows=3)
GRADE_LIST = "Cijfers-HerrewijnenJonathan.csv"
class Cijferlijst:
def __init__(self, grade_list=GRADE_LIST):
self.grade_list = grade_list
self.ps = pd.read_csv(GRADE_LIST, skiprows=2, sep=';')
def iets(self):
print(self.grade_list)
def CalculateMedian(self, subject, year):
# Calculates average for all scores without weight!
Grades = self.ps['Cijfer(Voortgangsdossier)'].loc[:]
print("blub")