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 Polars #179

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Support Polars #179

merged 1 commit into from
Aug 15, 2024

Conversation

aloctavodia
Copy link
Member

closes #178

@aloctavodia aloctavodia merged commit d89e0b6 into main Aug 15, 2024
4 checks passed
@aloctavodia aloctavodia deleted the polars branch August 15, 2024 20:53
try:
import polars as pl

if isinstance(X, (pl.Series, pl.DataFrame)):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aloctavodia you should not have to do any type checking if both dataframes have to_numpy() methods.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my phone, later I can try to make this clenaer. But the logic is that we also support other objects like numpy, or list. So this is not a check of polars vs pandas.

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

Successfully merging this pull request may close these issues.

Add polars compatibility to inputs
2 participants