You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, this issue similar to #1767, but that issue is a feature request, while this issue is about a bug triggered by Polars 1.0.0 for an existing Pandera feature.
edit: clarify that this was done with Pandera version v0.20.3
The text was updated successfully, but these errors were encountered:
Ran this on the main branch, the error message changes (compared to v0.20.3) to:
ImportError: cannot import name 'Check' from partially initialized module 'pandera.api.checks' (most likely due to a circular import) (C:\Users\nbutterly\Documents\Coding_2\pandera_testing\pandera\pandera\api\checks.py)
Describe the bug
pl.Enum
does not work for Polars version >=1.0.0
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Note that this only happens when Polars version is >=
1.0.0
, and runs without error if polars verion is <1.0.0
(tested on0.20.31
)Desktop (please complete the following information):
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I suspect the cause of the issue is that the annotation is not recognized as a Polars dtype here:
pandera/pandera/api/polars/model.py
Line 52 in 97221a6
Though this doesn't explain why the error only occurs for Polars version >=
1.0.0
.Also, this issue similar to #1767, but that issue is a feature request, while this issue is about a bug triggered by Polars
1.0.0
for an existing Pandera feature.edit: clarify that this was done with Pandera version v0.20.3
The text was updated successfully, but these errors were encountered: