pandantic
pandantic copied to clipboard
Enriches the Pydantic BaseModel class by adding the ability to validate dataframes using the schema and custom validators of the same BaseModel class.
Currently there is no license statement. Could you please add a `LICENSE` file that contains the license text. Thanks.
Hello! I'm doing some testing to this library (looks promising) but I found out that If i want an optional column in the dataframe the validation fails. Imagine a define...
Hi! So I was thinking of making a very similar project with one core difference: having the validator function as a Pandas plugin that takes a Pydantic BaseModel or Dataclass...
pandantic seemed to be such a nice and simple implementation that I decided edit your model to use with Polars Dataframes and figured I would share the results. I only...
Hi there, as a key motivation here is performance, you should consider using itertuples instead of to_dict for iterating over the dataframe, as I've found the snippet below to be...
at the moment data issues can either cause an Exception or for data to be dropped, depending on args used. Having a way to get data back on where and...
All changes would be reflected in the pypi page, therefore the update is necessary
**Changes:** * I combined all your pandas validator tests into one `.py` file. * New `.iterate()` function in the `BaseValidator` baseclass. * Implementation of overrides for `df.pydantic.itertuples(schema)` and `df.pydantic.iterrows(schema)` where...
The goal of the PR is to improve the per row logging in case the validation fails.
I saw this link about `pandera`'s implementation w/ pydantic models: https://www.union.ai/blog-post/pandera-0-17-adds-support-for-pydantic-v2 Seems like they validate at the `numpy` array level, altho I will look deeper. Basically in a later version...