forked from ScoDoc/ScoDoc
Coquille
This commit is contained in:
parent
8acd9a12d4
commit
35a20c3307
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user