Skip to content

DOC: Add docstrings for MultiIndex.levels and MultiIndex.codes #55435

Closed
@datapythonista

Description

@datapythonista

xref #55148

Seems like those docstrings are empty, we should create them.

See the attributes section here: https://pandas.pydata.org/docs/reference/api/pandas.MultiIndex.html

The docstring for `MultiIndex.levels should include information to make clear that levels are preserved even if the dataframe using the index doesn't contain all levels. See this page in the docs: https://pandas.pydata.org/docs/user_guide/advanced.html#defined-levels and this comment: #55433 (review)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions