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(python): Fix DataFrame.to_numpy for Struct columns when structured=True #16358

Merged
merged 1 commit into from
May 21, 2024

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented May 21, 2024

Ref #14334

Structs were just converted to an object type, but it makes much more sense for them to be nested structured arrays, which is supported by NumPy.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars labels May 21, 2024
@stinodego stinodego changed the title fix(python): Fix DataFrame.to_numpy for struct columns when structured=True fix(python): Fix DataFrame.to_numpy for Struct columns when structured=True May 21, 2024
@alexander-beedie
Copy link
Collaborator

Good call 👌

@stinodego stinodego marked this pull request as ready for review May 21, 2024 10:53
Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.37%. Comparing base (6289dc3) to head (5af9758).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16358      +/-   ##
==========================================
- Coverage   81.38%   81.37%   -0.01%     
==========================================
  Files        1406     1406              
  Lines      183911   183913       +2     
  Branches     2953     2954       +1     
==========================================
- Hits       149671   149660      -11     
- Misses      33727    33740      +13     
  Partials      513      513              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stinodego stinodego merged commit 825eb9c into main May 21, 2024
14 checks passed
@stinodego stinodego deleted the to-np-structured branch May 21, 2024 19:45
@c-peters c-peters added the accepted Ready for implementation label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation fix Bug fix python Related to Python Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants