Fix fiche marche

This commit is contained in:
Colin Maudry
2025-10-14 12:54:47 +02:00
parent 65e0f4c5f0
commit c98a36f759
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -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]