Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a levels member in pandas.Index #8751

Closed
SylvainCorlay opened this issue Nov 7, 2014 · 2 comments
Closed

Add a levels member in pandas.Index #8751

SylvainCorlay opened this issue Nov 7, 2014 · 2 comments
Labels
API Design Duplicate Report Duplicate issue or pull request Indexing Related to indexing on series/frames, not to indexes themselves

Comments

@SylvainCorlay
Copy link
Contributor

While they have two members labels and names , single indices lack the member levels of multi-indices.
It can be useful to set it to [df.values] to treat the single indices in the same way as hierarchical indices thanks to duck typing.

@jorisvandenbossche
Copy link
Member

I think this is related to (or could be part of) the unification of Index and MultiIndex: #3268
But that seems to have stalled somewhat.

@jreback
Copy link
Contributor

jreback commented Nov 7, 2014

yep this is already detail in #3268

@jreback jreback closed this as completed Nov 7, 2014
@jreback jreback added API Design Indexing Related to indexing on series/frames, not to indexes themselves Duplicate Report Duplicate issue or pull request labels Nov 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Duplicate Report Duplicate issue or pull request Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

No branches or pull requests

3 participants