diff --git a/src/pages/marche.py b/src/pages/marche.py index bfa4bae..4fbd04b 100644 --- a/src/pages/marche.py +++ b/src/pages/marche.py @@ -110,8 +110,6 @@ def update_marche_info(marche, titulaires): # Dates elif col in ["dateNotification", "datePublicationDonnees"]: - print(marche[col]) - value = datetime.fromisoformat(marche[col]).strftime("%d/%m/%Y") # Listes diff --git a/src/utils.py b/src/utils.py index d73a6a0..acf5ae7 100644 --- a/src/utils.py +++ b/src/utils.py @@ -126,6 +126,8 @@ def format_number(number) -> str: def format_montant(dff: pl.DataFrame) -> pl.DataFrame: def format_function(expr, scale=None): # https://stackoverflow.com/a/78636786 + print(type(expr)) + expr = expr.cast(pl.String) expr = expr.str.splitn(".", 2) num = expr.struct[0]