Polars python, format a column like this
df = pl.DataFrame({
"a": [0.15, 0.25]
})
result = df.with_columns(
pl.format("{}%", (pl.col("a") * 100).round(1))
)
print(result)
output
shape: (2, 1)
┌───────┐
│ a │
│ --- │
│ str │
╞═══════╡
│ 15.0% │
│ 25.0% │
└───────┘
How to do this with polars rust?