pandantic
pandantic copied to clipboard
27 add dataframe iteration to the pandas plugin
Changes:
- I combined all your pandas validator tests into one
.py
file. - New
.iterate()
function in theBaseValidator
baseclass. - Implementation of overrides for
df.pydantic.itertuples(schema)
anddf.pydantic.iterrows(schema)
where the behave as normal except non-schema validated rows are skipped (silently or not, depending onverbose
). - Implementation of
df.pydantic.iterschemas()
which returns the schema models.
Closes #27
Let's merge into PR #23 when this is ready @wesselhuising