Skip to content

Support Polars DataFrames as input/output #6

@gauthierpiarrette

Description

@gauthierpiarrette

Currently Timefence accepts Parquet, CSV, SQL queries, and pandas DataFrames. Polars is increasingly popular in the ML/data engineering space, and accepting polars.DataFrame and polars.LazyFrame natively (without going through Parquet) would reduce friction.

Since DuckDB can scan Polars DataFrames directly, this should be straightforward to wire up.

Scope:

  • Accept polars.DataFrame / polars.LazyFrame in Source(df=...) and Labels(df=...)
  • Return polars.DataFrame from build() when input is Polars
  • Keep polars as an optional dependency

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions