-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: update DataFrame.to_feather docstring #35408
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
Conversation
f2fb477
to
5a3d562
Compare
5a3d562
to
9cbc3e8
Compare
pandas/core/frame.py
Outdated
path : str or file-like object | ||
If a string, it will be used as Root Directory path. By file-like | ||
object, we refer to objects with a write() method, such as | ||
a file handler (e.g. via builtin open function) or io.BytesIO. |
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.
do we describe what file-like means elsewhere? id be ok with leaving that out.
backticks around io.BytesIO
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.
we do describe it in other writer methods and in the user guide - I took it out (fb37d73)
LGTM |
thanks @arw2019 |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
The issue was that
DataFrame.to_feather
had anfname
argument which in fact could be either a filename or a buffer. Most of the work to close #29532 was done in #30338 wherefname
argument was deprecated in favor ofpath
. Here I update the docstring to let users know that they can use a buffer.