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

Support for polars dataframes #1199

Open
muendlein opened this issue Apr 9, 2023 · 4 comments
Open

Support for polars dataframes #1199

muendlein opened this issue Apr 9, 2023 · 4 comments

Comments

@muendlein
Copy link

As Polars is becoming more and more popular I am wondering if there are any consideration to support its dataframes. Given the performance oriented focus of this package, it might be solid contender.

@ianthomas23
Copy link
Member

Yes, polars is certainly something we would like to add support for.

@ivirshup
Copy link

ivirshup commented Sep 6, 2023

Other plotting libraries have been adding support for polars (and others) by supporting the __dataframe__ interchange protocol (https://data-apis.org/dataframe-protocol/latest/index.html)

I think this would be a great solution here as it would allow polars as well as other tabular libraries to be used with data shader.

My use case would be to provide a dataframe interface to plotting libraries from an AnnData object. This use case would rely on data shader only requesting the columns it actually needs for a plot, and not try to request every column of the dataframe..

@ianthomas23
Copy link
Member

Yes, it is a good idea. It just needs someone to volunteer to do the required work.

@hathawayj
Copy link

I wonder if Narwhals could be leveraged?

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

No branches or pull requests

4 participants