Skip to content

feat: support polars DataFrames in pin_write and pin_read - #366

Draft
isabelizimm wants to merge 3 commits into
mainfrom
polars-support
Draft

isabelizimm wants to merge 3 commits into
mainfrom
polars-support

Conversation

@isabelizimm

Copy link
Copy Markdown
Collaborator
  • Add PolarsAdaptor so polars DataFrames can be pinned as csv, arrow, or parquet
  • Read table pins into polars via board.df_library or the PINS_DF_LIBRARY env var
  • Add pins[polars] optional extra

Inspired by work done by @nathanjmcdougall in #254 and #263, thank you so much for the contributions! Since those PRs are a bit stale (apologies, priorities had shifted for a while, but I'd like to do some maintenance over here to make this package better support modern tooling), I'm going to try to rehydrate them over here.

- Add PolarsAdaptor so polars DataFrames can be pinned as csv, arrow, or parquet
- Read table pins into polars via board.df_library or the PINS_DF_LIBRARY env var
- Add pins[polars] optional extra
- Type df_library as Literal["pandas", "polars"] and validate on assignment
- Add cross-library round-trip tests for csv, arrow, and parquet
- Require polars>=1.0 for the polars extra
- Add polars to requirements/dev.txt
- Add a "Using polars" section to Get Started
- Mention polars in the README
- Document df_library in pin_read, pin_write, and the reference index

This branch was successfully deployed

1 active (outdated) deployment
pr-366 — 5f31ee5d Deployed Dec 1, 2026 by github-actions[bot]
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.

1 participant