max_horizontal Gets Wrong Value For Decimal Columns With Different Scales #16296
Labels
A-dtype-decimal
Area: decimal data type
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
Creating a column with max_horizontal() across two decimal columns with different scales has a result with the wrong scale.
Max_horizontal between two decimal columns with the same scale has the expected result.
My apologies if I have confused scale vs precision here.
Expected behavior
Max_horizontal() outputs a column with the correct maximum value with the appropriate scale.
Installed versions
The text was updated successfully, but these errors were encountered: