Skip to content

ENH: Provide a public version of _get_axis #52023

Open
@michaelquinn32

Description

@michaelquinn32

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

Many of the axes functions take a string argument along with a positional argument.
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.set_axis.html

They rely on a private method ._get_axis() in order to support this.

When directly accessing the axes, a user can only get a list and must index that positionally.
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.axes.html

Feature Description

The only change here is to refactor _get_axis() so that it is public instead of private.

Alternative Solutions

N/A

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions