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

refactor!: deprecate pl$from_arrow in favor of as_polars_df and as_polars_series #728

Merged
merged 5 commits into from
Jan 21, 2024

Conversation

eitsupi
Copy link
Collaborator

@eitsupi eitsupi commented Jan 21, 2024

Close #677

A follow up for #727

Python Polars' polars.from_arrow takes a pyarrow.Table or pyarrow.Array (or something) as an argument and returns a DataFrame or Series.
In R, it is more natural to use the S3 method dispatch than to do conditional branching with if depending on the argument type.

@eitsupi eitsupi changed the title refactor!: depricate pl$from_arrow in favor of as_polars_df and as_polars_series refactor!: deprecate pl$from_arrow in favor of as_polars_df and as_polars_series Jan 21, 2024
@eitsupi eitsupi marked this pull request as ready for review January 21, 2024 16:00
Copy link
Collaborator

@etiennebacher etiennebacher left a comment

Choose a reason for hiding this comment

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

thanks!

R/convert.R Outdated Show resolved Hide resolved
R/convert.R Outdated Show resolved Hide resolved
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.

pl$from_arrow() v.s. as_polars_df()
2 participants