Creating Pandera DataFrameSchema for nested Pydantic class #1679
Unanswered
animeshsarraf
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to create a pandera.DataFrameSchema for a Pydantic class and I'm not sure how to approach this.
Below is my Pydantic class structure:
`
class Address(BaseModel):
street : str
city : str
pincode : int
class Person(BaseModel):
name : str
age : int
address: Address
`
Is there a method or workaround available to convert this Pydantic model(Person) into a Pandera DataFrameSchema? Any help or guidance would be greatly appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions