-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
closes #44914 by changing the path object to string if it is of io.BufferWriter #45480
closes #44914 by changing the path object to string if it is of io.BufferWriter #45480
Conversation
…s of io.BufferedWriter type.
…unsupported-dtype
… for typecasting to string in path object for to_parquet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test?
I have added two tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine if you can move the note & merge master
thanks @Anirudhsekar96 |
This makes mypy fail:
|
I have opened a new pull request for resolving mypy fail (#45570) |
…s of io.BufferWriter (pandas-dev#45480)
Changes the path object in to_parquet to string type if it is io.BufferWriter type. PyArrow does not remove the partial file on disk if the path is not string type.