Skip to content

PERF: remove useless overrides #21523

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

Merged
merged 1 commit into from
Jun 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/source/whatsnew/v0.23.2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Performance Improvements
- Improved performance of membership checks in :class:`CategoricalIndex`
(i.e. ``x in ci``-style checks are much faster). :meth:`CategoricalIndex.contains`
is likewise much faster (:issue:`21369`)
- Improved performance of :meth:`MultiIndex.is_unique` (:issue:`21522`)
-

Documentation Changes
Expand Down
12 changes: 0 additions & 12 deletions pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,14 +852,6 @@ def _has_complex_internals(self):
# to disable groupby tricks
return True

@cache_readonly
def is_monotonic(self):
"""
return if the index is monotonic increasing (only equal or
increasing) values.
"""
return self.is_monotonic_increasing

@cache_readonly
def is_monotonic_increasing(self):
"""
Expand Down Expand Up @@ -887,10 +879,6 @@ def is_monotonic_decreasing(self):
# monotonic decreasing if and only if reverse is monotonic increasing
return self[::-1].is_monotonic_increasing

@cache_readonly
def is_unique(self):
return not self.duplicated().any()

@cache_readonly
def _have_mixed_levels(self):
""" return a boolean list indicated if we have mixed levels """
Expand Down