Commit cf807f44 authored by Bruno Meyer's avatar Bruno Meyer
Browse files

listagem

parent 35dcee73
......@@ -5,6 +5,19 @@ from utils.situations import *
ANO_ATUAL = 2017
SEMESTRE_ATUAL = 2
def listagem_evasao(df):
#~ print(df["FORMA_EVASAO"].drop_duplicates())
#~ print(df)
#~ print(Situation.SITUATION_AFFECT_IRA)
#~ print(df)
aux = df[df.FORMA_EVASAO != 1]
print(aux)
#~ print(aux.where(aux.SITUACAO != 1)["SITUACAO"])
#~ print(df[df.SITUACAO.isin(Situation.SITUATION_AFFECT_IRA)])
#~ print(df.where(df["SITUACAO"] in Situation.SITUATION_AFFECT_IRA))
#~ aux = df.drop_duplicates(['MATR_ALUNO'], keep='last')
#~ print(aux["FORMA_EVASAO"].drop_duplicates())
def average_ira(d):
temp = d.dropna(subset=['MEDIA_FINAL'])
temp = temp[temp['MEDIA_FINAL'] <= 100]
......
......@@ -22,8 +22,7 @@ def build_cache(dataframe):
path += "/curso"
build_path(path)
generate_student_data(path, dataframe)
generate_degree_data(path, dataframe)
# generate_degree_data(path, dataframe)
generate_student_data(path,dataframe)
# generate_student_list(path)
# generate_admission_data(path)
......@@ -35,8 +34,6 @@ def generate_degree_data(path, dataframe):
average_graduation(dataframe)
general_failure(dataframe)
general_ira(dataframe)
total_evasion_rate(dataframe)
average_graduation_time(dataframe)
pass
def generate_student_data(path,dataframe):
......@@ -50,7 +47,8 @@ def generate_student_data(path,dataframe):
#~ ira_semestra(dataframe)
#~ periodo_pretendido(dataframe)
#~ print(periodo_real(dataframe))
print(posicao_turmaIngresso_semestral(dataframe))
#~ print(posicao_turmaIngresso_semestral(dataframe))
print(listagem_evasao(dataframe))
pass
def generate_student_list(path):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment