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

Native support for polars dataframes in imbalanced-learn #1092

Open
kumar-abhishek opened this issue Sep 6, 2024 · 3 comments
Open

Native support for polars dataframes in imbalanced-learn #1092

kumar-abhishek opened this issue Sep 6, 2024 · 3 comments

Comments

@kumar-abhishek
Copy link

Polars is a high-performance DataFrame library for Python, celebrated for its fast data processing capabilities and efficient, concise syntax. Its multi-threaded query engine and strong integration with the Python ecosystem make it an outstanding choice for managing large datasets. Polars has been gaining popularity as a fast and memory-efficient alternative to pandas, especially for big data applications.

While several libraries like scikit-learn and seaborn have added support for Polars DataFrames, I am not sure if imbalanced-learn currently requires users to directly use polars dataFrames or they need to convert Polars DataFrames to pandas (e.g., polars_df.to_pandas()) before applying the sampling methods.

I do see that imblearn depends upon polars and some APIs like set_output accept polars as parameter, it's unclear if imblearn APIs can directly work with polars dataframes

@kumar-abhishek kumar-abhishek changed the title Native Support for polars dataFrames in imbalanced-learn Native support for polars dataFrames in imbalanced-learn Sep 6, 2024
@kumar-abhishek kumar-abhishek changed the title Native support for polars dataFrames in imbalanced-learn Native support for polars dataframes in imbalanced-learn Sep 6, 2024
@jamblejoe
Copy link

Native support for polars would be really great!

@jamblejoe
Copy link

Maybe someone could point out the necessary steps to get at least rudimentary functionality with polars dataframes. I would be willing to investigate implementing those. Thanks!

@chkoar
Copy link
Member

chkoar commented Dec 12, 2024

It is on my todo list for 2025

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

3 participants