Skip to content

Commit a8d00ad

Browse files
committed
small updates according to comments
1 parent d84188d commit a8d00ad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/source/whatsnew/v0.24.0.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -1102,12 +1102,11 @@ Deprecations
11021102

11031103
- :attr:`MultiIndex.labels` has been deprecated and replaced by :attr:`MultiIndex.codes`.
11041104
The functionality is unchanged. The new name better reflects the natures of
1105-
these codes and makes the ``MultiIndex`` API more similar to the API for
1106-
:class:`CategoricalIndex`(:issue:`13443`).
1105+
these codes and makes the ``MultiIndex`` API more similar to the API for :class:`CategoricalIndex`(:issue:`13443`).
11071106
As a consequence, other uses of the name ``labels`` in ``MultiIndex`` have also been deprecated and replaced with ``codes``:
11081107
- You should initialize a ``MultiIndex`` instance using a parameter named ``codes`` rather than ``labels``.
1109-
- :meth:`MultiIndex.set_labels` has been deprecated in favor of :meth:`MultiIndex.set_codes`
1110-
- for method :meth:`MultiIndex.copy`, the ``labels`` parameter has been deprecated and replaced by a ``codes`` parameter.
1108+
- ``MultiIndex.set_labels`` has been deprecated in favor of :meth:`MultiIndex.set_codes`.
1109+
- For method :meth:`MultiIndex.copy`, the ``labels`` parameter has been deprecated and replaced by a ``codes`` parameter.
11111110
- :meth:`DataFrame.to_stata`, :meth:`read_stata`, :class:`StataReader` and :class:`StataWriter` have deprecated the ``encoding`` argument. The encoding of a Stata dta file is determined by the file type and cannot be changed (:issue:`21244`)
11121111
- :meth:`MultiIndex.to_hierarchical` is deprecated and will be removed in a future version (:issue:`21613`)
11131112
- :meth:`Series.ptp` is deprecated. Use ``numpy.ptp`` instead (:issue:`21614`)

0 commit comments

Comments
 (0)