-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
DEP: Deprecate passing a DataFrame to from_records #51697
Conversation
pandas/core/frame.py
Outdated
if isinstance(data, DataFrame): | ||
warnings.warn( | ||
"Passing a DataFrame to DataFrame.from_records is deprecated. Use " | ||
"set_index and/or drop instead to modify the DataFrame.", |
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.
"instead"?
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.
Why I am using instead or placement of instead within the sentence?
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.
im suggesting adding "instead" at the end of the last sentence
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.
changed
small comment, otherwise LGTM |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.cc @jbrockmendel as discussed, restructuring this allows us to simplify to_arrays immediately