Skip to content

Commit 1a2885f

Browse files
committed
DOC: v0.15.0 for GH8226
1 parent ea6b448 commit 1a2885f

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

doc/source/v0.15.0.txt

+18-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ users upgrade to this version.
1919
- Internal refactoring of the ``Index`` class to no longer sub-class ``ndarray``, see :ref:`Internal Refactoring <whatsnew_0150.refactoring>`
2020
- New datetimelike properties accessor ``.dt`` for Series, see :ref:`Datetimelike Properties <whatsnew_0150.dt>`
2121
- dropping support for ``PyTables`` less than version 3.0.0, and ``numexpr`` less than version 2.1 (:issue:`7990`)
22-
- API change in using Indexs set operations, see :ref:`here <whatsnew_0150.index_set_ops>`
22+
- API change in using Indexes in set operations, see :ref:`here <whatsnew_0150.index_set_ops>`
2323

2424
- :ref:`Other Enhancements <whatsnew_0150.enhancements>`
2525

@@ -347,7 +347,23 @@ API changes
347347

348348
.. _whatsnew_0150.index_set_ops:
349349

350-
- The Index set operations ``+`` and ``-`` were deprecated in order to provide these for numeric type operations on certain index types. ``+`` can be replace by ``.union()`` or ``|``, and ``-`` by ``.difference()``. Further the method name ``Index.diff()`` is deprecated and can be replaced by ``Index.difference()``
350+
- The Index set operations ``+`` and ``-`` were deprecated in order to provide these for numeric type operations on certain index types. ``+`` can be replace by ``.union()`` or ``|``, and ``-`` by ``.difference()``. Further the method name ``Index.diff()`` is deprecated and can be replaced by ``Index.difference()`` (:issue:`8226`)
351+
352+
.. code-block:: python
353+
354+
# +
355+
Index(['a','b','c']) + Index(['b','c','d'])
356+
357+
# should be replaced by
358+
Index(['a','b','c']).union(Index(['b','c','d']))
359+
360+
.. code-block:: python
361+
362+
# -
363+
Index(['a','b','c']) - Index(['b','c','d'])
364+
365+
# should be replaced by
366+
Index(['a','b','c']).difference(Index(['b','c','d']))
351367

352368
.. _whatsnew_0150.dt:
353369

0 commit comments

Comments
 (0)