Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Adds README #25

Merged
merged 2 commits into from
Mar 29, 2019
Merged

Adds README #25

merged 2 commits into from
Mar 29, 2019

Conversation

richiverse
Copy link

@richiverse richiverse commented Mar 29, 2019

This change is Reviewable

@richiverse richiverse merged commit e136943 into master Mar 29, 2019
@@ -24,5 +24,6 @@ def to_excel(df: pd.DataFrame, file_path: str, engine='', **kwargs) -> None:
with open(tmp_file, 'rb') as source, s3.open(file_path, 'wb') as dest:
dest.write(source.read())
os.remove(tmp_file)
return

Choose a reason for hiding this comment

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

This isn't required here. it was before when the next line was an outdented df.to_excel(writer, **kwargs), which leads me to ask,

What should this function do in the case that is_s3_path(file_path) != True?

Copy link
Author

Choose a reason for hiding this comment

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

It should just run plain vanilla pandas.to_excel.

The reason this was added was because both versions were running and causing downstream code to fail in the process since vanilla pandas has no concept of an s3 key

Choose a reason for hiding this comment

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

oh, oops, I see that happens below. The GitHub view is difficult for me to read sometimes. 👍

```
## Excel

By default, pandas will natively read to s3 but won't write to s3.

Choose a reason for hiding this comment

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

read from


By default, pandas will natively read to s3 but won't write to s3.

Choose a reason for hiding this comment

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

read from

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants