Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit 2459356245 - Show all commits

View File

@ -828,6 +828,7 @@ def convert_colonnes_to_multiindex(df):
colonnes = [tuple(col.split("|")) for col in colonnes] colonnes = [tuple(col.split("|")) for col in colonnes]
# modifie le nom du semestre par sa descr # modifie le nom du semestre par sa descr
colonnes_verbose = [] colonnes_verbose = []
for col in colonnes: for col in colonnes:
if col[0] in pe_rcs.TYPES_RCS: if col[0] in pe_rcs.TYPES_RCS:
descr = pe_rcs.get_descr_rcs(col[0]) descr = pe_rcs.get_descr_rcs(col[0])
@ -835,6 +836,7 @@ def convert_colonnes_to_multiindex(df):
col_verbose = tuple(col_verbose) col_verbose = tuple(col_verbose)
else: else:
col_verbose = col col_verbose = col
colonnes_verbose.append(col) colonnes_verbose.append(col_verbose)
df.columns = pd.MultiIndex.from_tuples(colonnes_verbose) df.columns = pd.MultiIndex.from_tuples(colonnes_verbose)
return df return df