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): Allow Python Enums as dtype inputs #19926

Merged
merged 3 commits into from
Nov 22, 2024
Merged

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Nov 22, 2024

Closes #19724

Python Enums (and StrEnums) can now be used as dtype inputs, and can be passed to the Polars Enum constructor.

@stinodego stinodego changed the title Allow Python Enums as dtype inputs feat(python): Allow Python Enums as dtype inputs Nov 22, 2024
@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars and removed title needs formatting labels Nov 22, 2024
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.48%. Comparing base (7b07c85) to head (63b576f).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19926      +/-   ##
==========================================
+ Coverage   79.44%   79.48%   +0.04%     
==========================================
  Files        1554     1554              
  Lines      215618   216140     +522     
  Branches     2454     2456       +2     
==========================================
+ Hits       171289   171795     +506     
- Misses      43770    43787      +17     
+ Partials      559      558       -1     

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


🚨 Try these New Features:

@stinodego stinodego marked this pull request as ready for review November 22, 2024 12:24
@ritchie46
Copy link
Member

Nice!

@ritchie46 ritchie46 merged commit 414d883 into main Nov 22, 2024
13 checks passed
@ritchie46 ritchie46 deleted the python-enum-support branch November 22, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support StrEnums in Enum Construction
2 participants