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

Add first-class support for polars #5939

Open
maximlt opened this issue Oct 13, 2023 · 5 comments
Open

Add first-class support for polars #5939

maximlt opened this issue Oct 13, 2023 · 5 comments
Labels
type: feature A major new feature

Comments

@maximlt
Copy link
Member

maximlt commented Oct 13, 2023

I know @hoxbro has that in mind but couldn't find an issue about it. I'm updating hvPlot's docs for the 0.9.0 release and want to mention the support of Polars isn't as deep as it is with other data types like Dask. Opening this issue to link it from hvPlot's docs.

@maximlt maximlt added the type: feature A major new feature label Oct 13, 2023
@MarcoGorelli
Copy link

Would the task here be to implement PolarsInterface in holoviews/core/data/polars.py, just like there's PandasInterface in holoviews/core/data/pandas.py?

@maximlt
Copy link
Member Author

maximlt commented Jan 2, 2024

Yes I think that's the minimum required. Looking through the code base for dask or cudf for example reveals some other places where different data types are handled.

@douglas-raillard-arm
Copy link
Contributor

Is there any plan to add support for the dataframe protocol ?
https://data-apis.org/dataframe-protocol/latest/index.html
polars seems to implement it, although my understanding is that it would be less efficient than handling polars directly since that API only allows converting between formats rather than accessing the content directly.

@hoxbro
Copy link
Member

hoxbro commented Feb 20, 2024

Maybe in the future. Currently, my plan is:

  1. Update pandas DataFrame with MultiIndex support (Implement support for retaining Pandas index #6061).
  2. Implement a PolarsInterface.
  3. Maybe take a look at the dataframe protocol.

@MarcoGorelli
Copy link

Implement a PolarsInterface

If you ever wanted to pair on this, feel free to book some time https://calendly.com/marcogorelli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A major new feature
Projects
None yet
Development

No branches or pull requests

4 participants