-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
API: rename MultiIndex.labels to MultiIndex.codes #23752
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
Changes from 1 commit
2851225
10dc7c0
94a6c44
fb202f7
0e74c15
2f6179e
6ae2efd
34e7ec5
dbd0bdc
4341ca1
d84188d
a8d00ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1102,9 +1102,9 @@ Deprecations | |
|
||
- :attr:`MultiIndex.labels` has been deprecated and replaced by :attr:`MultiIndex.codes`. | ||
The functionality is unchanged. This new name better reflects the natures of | ||
these codes and makes the API more similar to the API for | ||
these codes and makes the ``MultiIndex`` API more similar to the API for | ||
:class:`CategoricalIndex`(:issue:`13443`). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this might be a doc-rendering problem, but can resolve There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure I understand. |
||
As a consequence, other uses of the name ``labels`` have also been deprecated in ``MultiIndex`` and replaced with ``codes``: | ||
As a consequence, other uses of the name ``labels`` in ``MultiIndex`` have also been deprecated and replaced with ``codes``: | ||
- You should initialize a ``MultiIndex`` instance using a parameter named ``codes`` rather than ``labels``. | ||
- :meth:`MultiIndex.set_labels` has been deprecated in favor of :meth:`MultiIndex.set_codes` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. period at the end. |
||
- for method :meth:`MultiIndex.copy`, the ``labels`` parameter has been deprecated and replaced by a ``codes`` parameter. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't this is valid any longer, you can remove the attr