From d310304e9eababd7c65d3e79007d86305035e33b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9o=20BARAS=20=28IUT1=20Grenoble=29?= Date: Sat, 27 Jan 2024 10:45:17 +0100 Subject: [PATCH] =?UTF-8?q?Corrige=20bug=20~np.isnan(set=5Fcube)=20(efface?= =?UTF-8?q?=20notes=20charg=C3=A9es=20de=20type=20string)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pe/pe_trajectoiretag.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/pe/pe_trajectoiretag.py b/app/pe/pe_trajectoiretag.py index e6f83cd46..7fff55f5c 100644 --- a/app/pe/pe_trajectoiretag.py +++ b/app/pe/pe_trajectoiretag.py @@ -150,6 +150,10 @@ class TrajectoireTag(TableTag): etudids_communs, tags_communs ] + # Supprime tout ce qui n'est pas numérique + for col in df.columns: + df[col] = pd.to_numeric(df[col], errors="coerce") + """Stocke le df""" dfs[frmsem_id] = df