Skip to content

Polars direct integration #305

@marcozanotti

Description

@marcozanotti

Hi,

I am used to work with the timetk package in R, so for a python project I am trying out pytimetk.
However, I would expect pytimetk functions to work with polars objects, not only with pandas objects.
I see that there is a backend option that allows to perform operations with polars, but, as far as I understand, it

  • converts pandas objects to polars

  • applies some functions with polars

  • transforms back the polars objects to pandas

It would be beneficial to have pytimetk work with both data objects directly, as it is in Nixtla's libraries for instance, with something like

if isinstance(df, pd.DataFrame):
... pandas backend
else:
... polars backend

BTW thanks for all your work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions