import pandas as pd import numpy as np 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")