Top 10 acheteurs sur les pages titulaire #55

This commit is contained in:
Colin Maudry
2025-11-10 13:30:50 +01:00
parent f6a38a29bd
commit e9faf80609
4 changed files with 51 additions and 5 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ def format_montant(dff: pl.DataFrame, column: str = "montant") -> pl.DataFrame:
frac: pl.Expr = (
pl.when(frac.is_not_null() & ~frac.is_in(["0"]))
.then("," + frac)
.then("," + frac.str.head(2))
.otherwise(pl.lit(""))
)