From 24593562452229c41ae059007b517b4115530533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9o=20BARAS=20=28IUT1=20Grenoble=29?= Date: Tue, 27 Feb 2024 18:33:33 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A8gle=20le=20pb=20d'affichage=20de=20l'exp?= =?UTF-8?q?ort=20excel=20final?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pe/pe_jury.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/pe/pe_jury.py b/app/pe/pe_jury.py index 423f6ffa..5673d254 100644 --- a/app/pe/pe_jury.py +++ b/app/pe/pe_jury.py @@ -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