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

Add a generic Series type for polars #1595

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

baldwinj30
Copy link
Contributor

Closes #1594

Added a Series type alongside the LazyFrame type, and added it as an accepted annotation in the polars model.

Signed-off-by: Jacob Baldwin <baldwinj30@gmail.com>
Copy link
Collaborator

@cosmicBboy cosmicBboy left a comment

Choose a reason for hiding this comment

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

You'll have to rebase onto the main branch to address unrelated pyspark unit test error.

Comment on lines 100 to 101
" pandera.typing.Series[TYPE] annotations are not supported for polars. "
"Use the pandera.typing.polars.Series[TYPE] annotation or the bare TYPE directly"
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's delete this part, now that polars backend now supports Series generic type.

Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 83.12%. Comparing base (4df61da) to head (2eb232d).
Report is 71 commits behind head on main.

Files Patch % Lines
pandera/typing/polars.py 0.00% 2 Missing ⚠️
pandera/api/polars/model.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1595       +/-   ##
===========================================
- Coverage   94.29%   83.12%   -11.17%     
===========================================
  Files          91      114       +23     
  Lines        7024     8490     +1466     
===========================================
+ Hits         6623     7057      +434     
- Misses        401     1433     +1032     

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

@cosmicBboy
Copy link
Collaborator

thanks @baldwinj30 and congrats on your first contribution to pandera! 🚀

@cosmicBboy cosmicBboy merged commit 1148867 into unionai-oss:main Apr 26, 2024
66 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a polars Series type
2 participants