Closed
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.