Skip to content

Support Polars dataframes and Pydantic model rows - #512

Open
Aschenbath wants to merge 1 commit into
astanin:masterfrom
Aschenbath:fix/big20-20261123-bde6-tabulate-polars
Open

Aschenbath wants to merge 1 commit into
astanin:masterfrom
Aschenbath:fix/big20-20261123-bde6-tabulate-polars

Conversation

@Aschenbath

Copy link
Copy Markdown

Polars dataframes now use their public row iterator and retain column names for headers="keys", including empty frames. They follow ordinary row-index rules. Pydantic model iterables use the public v2/v1 serialization APIs and dictionary header rules, honoring excluded fields, custom serializers, nested values and computed fields. Neither dependency is imported or required for other inputs.

Closes #258 and closes #309.

Added 22 regression cases, optional dependencies to the existing extra-test environments, and input documentation. All 22 cases fail on the unchanged baseline.

Validation: full tests and doctests pass on Python 3.12 with Polars 2/Pydantic 2 (404 passed, 1 existing skip) and Python 3.10 with Polars 1/Pydantic 1 (403 passed, 2 skips, including the v2-only case). Full Ruff lint and formatting checks pass.

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.

Support for Pydantic Models Support for polars would be awesome!

1 participant