1
0
forked from ScoDoc/ScoDoc
This commit is contained in:
Cléo Baras 2024-02-27 16:30:00 +01:00
parent 8acd9a12d4
commit 35a20c3307

View File

@ -608,7 +608,7 @@ class JuryPE(object):
# Les données des étudiants
etuds = [etud for etudid, etud in self.etudiants.etudiants_diplomes.items()]
df = pe_tabletags.df_administratif(etuds, aggregat="", cohorte="")
df = pe_tabletags.df_administratif(etuds, aggregat="Administratif", cohorte="")
if type_moy == pe_moytag.CODE_MOY_UE:
aggregats = pe_rcs.TOUS_LES_SEMESTRES
@ -769,5 +769,14 @@ def convert_colonnes_to_multiindex(df):
multiindex"""
colonnes = list(df.columns)
colonnes = [tuple(col.split("|")) for col in colonnes]
df.columns = pd.MultiIndex.from_tuples(colonnes)
# modifie le nom du semestre par sa descr
colonnes_verbose = []
for col in colonnes:
if col[0] in pe_rcs.TYPES_RCS:
col_verbose = [pe_rcs.TYPES_RCS[col[0]]] + list(col[1:])
col_verbose = tuple(col_verbose)
else:
col_verbose = col
colonnes_verbose.append(col)
df.columns = pd.MultiIndex.from_tuples(colonnes_verbose)
return df