pola-rs / polars

Dataframes powered by a multithreaded, vectorized query engine, written in Rust
https://docs.pola.rs
Other
30.52k stars 1.98k forks source link

feat(python): Allow Python Enums as dtype inputs #19926

Closed stinodego closed 2 days ago

stinodego commented 2 days ago

Closes https://github.com/pola-rs/polars/issues/19724

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

codecov[bot] commented 2 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features:

ritchie46 commented 2 days ago

Nice!