Skip to content

BUG/ENH: allow axis name aliasing #3109

Closed
@jreback

Description

@jreback

http://stackoverflow.com/questions/15533093/pandas-access-axis-by-user-defined-name/15534409#15534409

not that this is user friendly, but

pd.DataFrame._AXIS_ALIASES['myaxis'1] = 0
pd.DataFrame._AXIS_ALIASES['myaxis2'] = 1

df.sum(axis='myaxis1')

should work but doesn't

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions