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

feat(python): Change Series.to_numpy to return f64 for Int32/UInt32 Series with nulls instead of f32 #14240

Merged
merged 3 commits into from
Feb 4, 2024

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Feb 3, 2024

Not sure this can just be merged, but returning f32 here was not correct since it may lose precision.

@github-actions github-actions bot added breaking python Change that breaks backwards compatibility for the Python package enhancement New feature or an improvement of an existing feature python Related to Python Polars labels Feb 3, 2024
@ritchie46
Copy link
Member

This can be merged. It doesn't fit all possible values and I don't expect this to break any code.

@stinodego stinodego changed the title feat(python!): Change Series.to_numpy to return f64 for Int32/UInt32 Series instead of f32 feat(python): Change Series.to_numpy to return f64 for Int32/UInt32 Series instead of f32 Feb 3, 2024
@stinodego stinodego removed the breaking python Change that breaks backwards compatibility for the Python package label Feb 3, 2024
@stinodego stinodego changed the title feat(python): Change Series.to_numpy to return f64 for Int32/UInt32 Series instead of f32 feat(python): Change Series.to_numpy to return f64 for Int32/UInt32 Series with nulls instead of f32 Feb 3, 2024
@stinodego stinodego force-pushed the fix-np-i32-float branch 2 times, most recently from c1463d7 to 6d57b33 Compare February 4, 2024 00:38
@stinodego stinodego marked this pull request as ready for review February 4, 2024 01:20
@ritchie46 ritchie46 merged commit 6a7e480 into main Feb 4, 2024
15 checks passed
@ritchie46 ritchie46 deleted the fix-np-i32-float branch February 4, 2024 06:40
@c-peters c-peters added the accepted Ready for implementation label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation enhancement New feature or an improvement of an existing feature python Related to Python Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants