Does pandera support validating enum.Enum or subclases of it ? #907
davidandreoletti
started this conversation in
General
Replies: 2 comments
-
hi @davidandreoletti, this is currently not supported, but this would be a great feature! Going to turn this into an enhancement issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
created #911 to track this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Assuming a pedantic like class declaration with:
Currently pandera fails (via exception raised) because it seems pandas does not reconignize the Enum as a registered custom dtype.
What methods/workaround could be used to let pandera enforce/check the column contains SizeEnum types (rather than one of its string values such as "big")?
Beta Was this translation helpful? Give feedback.
All reactions