Home > OS >  How I can round up values in Polars
How I can round up values in Polars

Time:12-23

I have some calculated float columns. I want to display values of one column rounded, but round(pl.col("value"), 2) not vorking properly in Polars. How I can make it?

CodePudding user response:

df.with_column(
    pl.col("x").round(2)
)
  • Related