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

fix: sum_horizontal should not always cast to int #12031

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

reswqa
Copy link
Collaborator

@reswqa reswqa commented Oct 25, 2023

This fixes #12028.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Oct 25, 2023
.install(|| {
s.par_iter()
.try_fold(
|| UInt32Chunked::new("", &[0u32]).into_series(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause the sum dtype always cast to int.

@reswqa reswqa marked this pull request as ready for review October 26, 2023 04:38
@ritchie46 ritchie46 merged commit 06e6b3e into pola-rs:main Oct 26, 2023
25 checks passed
@ion-elgreco
Copy link
Contributor

@reswqa thanks for quick fix 🕺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sum_horizontal on Duration returns wrong dtype
3 participants