Skip to content

Remove StringMixin from code base #26495

Closed
@topper-123

Description

@topper-123

I`m thinking about making a PR to remove StringMixin from the code base in order to make pandas use more standard string output methodology (putting the base string representations in the ``repr`` , as is standard in python3, instead of in ``str``).

Any objections to this? This is backwards compatible for users of Pandas, but may be slightly backwards incompatible for subclasses of Pandas classes located in external packages, e.g. If a downstream package did this:

>>> class MyFrame(pd.DataFrame):
...    def __str__(self):
...        returnabc

the repr would output an unexpected string.

Would this e.g. affect Geopandas, @jorisvandenbossche?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CleanInternalsRelated to non-user accessible pandas implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions