Open
Description
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