forked from ScoDoc/ScoDoc
Règle le pb d'affichage de l'export excel final
This commit is contained in:
parent
b1602f0cf3
commit
2459356245
@ -828,6 +828,7 @@ def convert_colonnes_to_multiindex(df):
|
||||
colonnes = [tuple(col.split("|")) for col in colonnes]
|
||||
# modifie le nom du semestre par sa descr
|
||||
colonnes_verbose = []
|
||||
|
||||
for col in colonnes:
|
||||
if col[0] in pe_rcs.TYPES_RCS:
|
||||
descr = pe_rcs.get_descr_rcs(col[0])
|
||||
@ -835,6 +836,7 @@ def convert_colonnes_to_multiindex(df):
|
||||
col_verbose = tuple(col_verbose)
|
||||
else:
|
||||
col_verbose = col
|
||||
colonnes_verbose.append(col)
|
||||
colonnes_verbose.append(col_verbose)
|
||||
|
||||
df.columns = pd.MultiIndex.from_tuples(colonnes_verbose)
|
||||
return df
|
||||
|
Loading…
Reference in New Issue
Block a user