-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
ENH: Rename internal DataFrame._append()
#57936
Comments
Is the proposal to do this with all internal methods that are similar to removed external names? I'm pretty opposed here - I think we should be free to chose internal names however we see fit. |
No, but in this case, since we deprecated |
Nvm - this SO question is already mentioned in the Discourse thread |
I would definitely wait until python/cpython#116871 has a resolution upstream before preemptively acting here. |
Isn’t a fix in cpython going to take ages? I’d be fine with changing the name on our end |
No opposition if this is a unique case, but I'd like to not play whack-a-mole with the CPython interpreter and our internal names. That seems like too much code churn to me. |
I think the issue here is that we used to have |
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
This comment on the python discussion is interesting:
https://discuss.python.org/t/name-suggestions-for-attributeerrors-and-possibly-nameerrors-should-not-include-names-with-single-leading-underscores/48588
Example code (from main):
What is happening is that the python interpreter is suggesting people use
DataFrame._append()
since we removedappend()
Feature Description
I think if we renamed the internal
_append()
to something like_internal_append_do_not_use()
then maybe the interpreter wouldn't do that suggestion.Alternative Solutions
Bring back
DataFrame.append()
???Additional Context
No response
The text was updated successfully, but these errors were encountered: