You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In python, round() usually means “Rounding half to even”, but polars Series.round()/Expr.round() do not. It should be adding an argument such as to_even to the method. At the very least, there should be a note in the documentation.
The prevalence of the half-up strategy seems to be mostly due C predating IEEE754 and languages directly importing C's default round behavior. Most languages that are either geared towards numerical analysis or are just plain newer seem to default to half-even.
Description
In python,
round()
usually means “Rounding half to even”, but polarsSeries.round()
/Expr.round()
do not. It should be adding an argument such asto_even
to the method. At the very least, there should be a note in the documentation.expected:
The text was updated successfully, but these errors were encountered: