Skip to content

ENH: Rename internal DataFrame._append()  #57936

Open
@Dr-Irv

Description

@Dr-Irv

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):

>>> pd.DataFrame.append()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: type object 'DataFrame' has no attribute 'append'. Did you mean: '_append'?

What is happening is that the python interpreter is suggesting people use DataFrame._append() since we removed append()

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions