Skip to content

How to use SeriesSchema with pydantic? #712

Answered by cosmicBboy
cleboo asked this question in Q&A
Discussion options

You must be logged in to vote

hey @cleboo ! So currently pydantic models don't allow for validating pd.Series against pandera.SeriesSchema

Basically the code you have there will only validate whether or not s is a SeriesSchema object or not, see the schemas defined in the unit tests here and its usage here as an example

Once #688 is addressed you'll be able to validate series against Series-specific models

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cleboo
Comment options

Answer selected by cleboo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants