patito
patito copied to clipboard
A data modelling layer built on top of polars and pydantic
This is going to cause an issue when you want to validate the list column: Reproducible example: ```python class Test(pt.Model): col: list[str] class InhTest(Test): pass df = InhTest.examples({ "col":[['Hello']] })...
Fixes various issues with the documentation: 1. Remove database & SQL references - these were removed in #32. Delete files and references in .rst files _(I had read the whole...
This topic probably belongs in a discussion forum but I couldn't find one for patito. Please let me know if there is a better place to ask this. I would...
Hi, this PR aims to remove the python upper version constraint `
Hi, I discovered your project one week ago, thanks a lot for the work. I was doing something similar for data validation at my company and saw the speed of...
@brendancooley (and others), I want to refactor the [Field](https://github.com/JakobGM/patito/blob/7fa782975cc20d8f7d1d16364f03948ac70f678a/src/patito/pydantic.py#L1317) function in order to: - Have a statically (pyright) parseable docstring - Explicitly pass arguments like `gt`, `dtype`, `constraints` etc rather...
Currently, a type specification of `Optional[int]` means that a column must be of integer type but may contain nulls. We currently don't support a syntax to specify that it is...
I was looking at the CSV reading abilities of patito and wondering what had happened to the tests for them, and it looks like they got marked as 'xfail' (expected...
If the header is to be read by the Polars CSV reader, and if the Pydantic model has an alias generator, then the columns should be expected to be given...
I'm trying out Patito on some real data and as far as I can tell it is inferring the column types (rather than using the model-specified field types) when using...