Add a levels
member in pandas.Index
#8751
Labels
API Design
Duplicate Report
Duplicate issue or pull request
Indexing
Related to indexing on series/frames, not to indexes themselves
While they have two members
labels
andnames
, single indices lack the memberlevels
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.The text was updated successfully, but these errors were encountered: