Skip to content

Commit 72a5595

Browse files
committed
Fix IntervalIndex.symmetric_difference typo
1 parent 50f432d commit 72a5595

File tree

3 files changed

+174
-120
lines changed

3 files changed

+174
-120
lines changed

doc/source/whatsnew/v0.21.1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Performance Improvements
4040
~~~~~~~~~~~~~~~~~~~~~~~~
4141

4242
- Improved performance of plotting large series/dataframes (:issue:`18236`).
43-
-
43+
- Improved performance of ``IntervalIndex.symmetric_difference()`` (:issue:`18475`)
4444
-
4545

4646
.. _whatsnew_0211.docs:
@@ -74,7 +74,7 @@ Indexing
7474
- Bug where a ``MultiIndex`` with more than a million records was not raising ``AttributeError`` when trying to access a missing attribute (:issue:`18165`)
7575
- Bug in :class:`IntervalIndex` constructor when a list of intervals is passed with non-default ``closed`` (:issue:`18334`)
7676
- Bug in ``Index.putmask`` when an invalid mask passed (:issue:`18368`)
77-
-
77+
- Bug in ``IntervalIndex.symmetric_difference()`` where the symmetric difference with a non-``IntervalIndex`` did not raise (:issue:`18475`)
7878

7979
I/O
8080
^^^

pandas/core/indexes/interval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ def func(self, other):
11711171
union = _setop('union')
11721172
intersection = _setop('intersection')
11731173
difference = _setop('difference')
1174-
symmetric_differnce = _setop('symmetric_difference')
1174+
symmetric_difference = _setop('symmetric_difference')
11751175

11761176
# TODO: arithmetic operations
11771177

0 commit comments

Comments
 (0)