Skip to content

Request for some kind of named arguments loc #11373

Closed
@szaiser

Description

@szaiser

Please quickly recall how awesome named arguments for Python are and then read through the following idea:

In case of identical or almost identical values of index and columns, it can be annoying to remember the assignment of the two data-axes to index and columns respectively. This could be solved by assigning names to index and columns, e.g. index_name=yand columns_name=x, and hence being able to retrieve values via pd.DataFrame.name_loc(x=10, y=20) (syntax not final).

I have no idea, if such a feature can be implemented with reasonable effort. I do however believe, that it would highly increase the usability of DataFrames for certain usecases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIndexingRelated to indexing on series/frames, not to indexes themselvesMultiIndexNeeds DiscussionRequires discussion from core team before further action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions