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)
)

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)
)