Closed
Description
- Idea: use df.index/df.columns names to automatically choose axis along which to broadcast #13243 use df.index/df.columns names to automatically choose axis along which to broadcast
- Request for some kind of named arguments loc #11373 Request for some kind of named arguments loc
- Partial Selection on MultiIndex: The need for empty slice support & dict indexing #4036 Partial Selection on MultiIndex: The need for empty slice support & dict indexing
What if we allowed the index of a dataframe to be referred to in the usual ways?
data = pd.read_table("...", index_col="id")
data.id # breaks
data["id"] # breaks
I find myself setting and resetting indices very often to join to a different dataframe or to pull in the values of the index to a subselection of the dataframe, etc. I figure this is because of how the data is stored under the hood, but wouldn't this be convenient?