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

pass s3 storage options to dataframe read/write #484

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

ryanSoley
Copy link
Member

What

  • storage_options were only being passed to fsspec for standard file read/write
  • now passes provided storage options to dataframe read/write functions where necessary
    • storage_options must be empty for non-remote storage or pandas and dask will error

How to Test

  • python -m pytest tests

@ryanSoley ryanSoley requested review from a team as code owners September 19, 2024 19:56
@ryanSoley ryanSoley self-assigned this Sep 19, 2024
@ryanSoley ryanSoley added the bugfix PRs that address the bugs detailed in 'bug' issues. label Sep 19, 2024
@@ -614,7 +616,7 @@ def _persist_dataframe(
df.write_parquet(path)
Copy link
Member Author

Choose a reason for hiding this comment

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

polars only seems to offer storage option input on read, not write

https://docs.pola.rs/api/python/stable/reference/api/polars.DataFrame.write_parquet.html

Copy link
Contributor

@thebrianbn thebrianbn left a comment

Choose a reason for hiding this comment

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

LGTM

@ryanSoley ryanSoley merged commit 5054eb1 into main Sep 20, 2024
7 checks passed
@ryanSoley ryanSoley deleted the df-s3-storage-options branch September 20, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PRs that address the bugs detailed in 'bug' issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants