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

Output polars/arrow from pre_transform_datasets/transformed_data #270

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

jonmmease
Copy link
Collaborator

Updates pre_transform_datasets (and thereby vf.transformed_data) to output polars DataFrame(s) if:

  • There is at least one inline dataset
  • all of the inline datasets are polars DataFrames

This way a polars user can create a chart from a polars DataFrame and retrieve a polars DataFrame with vf.transformed_data all without any pandas conversions.

When the input inline datasets to pre_transform_dataset are all pyarrow Tables, return a pyarrow Table. If they are all polars DataFrames, return a polars DataFrame. This avoids unnecessary conversion through pandas.
@jonmmease jonmmease merged commit 2fc11c1 into main Mar 20, 2023
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.

1 participant