Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple operation gives the max hexadecimal for U32 #21540

Open
2 tasks done
tylerriccio33 opened this issue Feb 28, 2025 · 0 comments
Open
2 tasks done

Simple operation gives the max hexadecimal for U32 #21540

tylerriccio33 opened this issue Feb 28, 2025 · 0 comments
Labels
bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars

Comments

@tylerriccio33
Copy link
Contributor

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

      import polars as pl

      pl.DataFrame({"n1": [1], "n2":[0]}).with_columns(pl.all().cast(pl.UInt32)).with_columns(
          diff = pl.col('n2') - pl.col('n1')
      )

Log output

Issue description

This returns 4,294,967,295 as the real_diff.

Expected behavior

The real_diff should be -1

Installed versions

Replace this line with the output of pl.show_versions(). Leave the backticks in place.
@tylerriccio33 tylerriccio33 added bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars
Projects
None yet
Development

No branches or pull requests

1 participant