Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON serialize and deserialize polars datatypes #35

Closed
wants to merge 21 commits into from
Closed

Conversation

thomasaarholt
Copy link
Collaborator

  • Downgrade Sphinx to compatible version
  • very rough draft for pydantic v2
  • fix: DataFrameValidationError mirrors pydantic v1 ValidationError
  • wip: subclass FieldInfo, extend with patito field attributes
  • fix: update LDF.collect() for polars==0.19.8
  • wip: restructure model reconstitution routines, all tests passing
  • chore: lockfile and formatting
  • fix: handle multiple annotations when dtype is present in Field
  • check: annotated dtypes match those specified in Field.dtype
  • chore: misc typing improvements
  • fix: search for nested field constraints on validation, ignore nulls
  • fix: better inference for column nullability
  • wip: better type mismatch messaging, move Representation to internal
  • wip: onto classproperty formulation in lieu of metaclass
  • wip: custom classproperty (from polars)
  • wip: robustify array dtype inference, add pt custom fields to Field()
  • feature: custom Field/FieldInfo constructors for better extensibility
  • fix: make _PatitoFieldInfo private, ensure ext fields -> _schema_props
  • wip: serialization
  • wip: modularize annotation -> dtype and dtype validation
  • Example serializing and deserializing polars datatypes

JakobGM and others added 21 commits October 26, 2023 12:42
test_validators passes with exception of tests containing `json_schema_extra`
all `test_validators` now succeed, all but `test_dataframe_get_method` now pass in `test_polars`
fix: switch to *args/**kwargs
chore: cleanup init

chore: cleanup init

chore: more misc cleanup

cleanup json_schema_extras
wip: ColumnInfo API

cleanup
working to minimize references to _schema_properties and work with more structured and customizable objects. should be easier to add new supported dtypes with this framework and debug in future

wip: tests -> new dtype inference engine

wip: dtype docstrings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants