-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
EnhancementIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselvesMultiIndexNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action
Description
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=y
and 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
Labels
EnhancementIndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselvesMultiIndexNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action