Skip to content

Commit b08c22b

Browse files
jschendeljreback
authored andcommitted
TYPO: IntervalIndex.symmetric_differnce -> IntervalIndex.symmetric_difference (#18476)
1 parent f26bed6 commit b08c22b

File tree

3 files changed

+174
-120
lines changed

3 files changed

+174
-120
lines changed

doc/source/whatsnew/v0.22.0.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Performance Improvements
114114
- The overriden ``Timedelta`` properties of days, seconds and microseconds have been removed, leveraging their built-in Python versions instead (:issue:`18242`)
115115
- ``Series`` construction will reduce the number of copies made of the input data in certain cases (:issue:`17449`)
116116
- Improved performance of :func:`Series.dt.date` and :func:`DatetimeIndex.date` (:issue:`18058`)
117-
-
117+
- Improved performance of ``IntervalIndex.symmetric_difference()`` (:issue:`18475`)
118118

119119
.. _whatsnew_0220.docs:
120120

@@ -146,7 +146,7 @@ Indexing
146146
- Bug in :func:`MultiIndex.remove_unused_levels`` which would fill nan values (:issue:`18417`)
147147
- Bug in :func:`MultiIndex.from_tuples`` which would fail to take zipped tuples in python3 (:issue:`18434`)
148148
- Bug in :class:`IntervalIndex` where empty and purely NA data was constructed inconsistently depending on the construction method (:issue:`18421`)
149-
-
149+
- Bug in ``IntervalIndex.symmetric_difference()`` where the symmetric difference with a non-``IntervalIndex`` did not raise (:issue:`18475`)
150150

151151
I/O
152152
^^^

pandas/core/indexes/interval.py

+1-1
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)