We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 543b0d3 commit 0bba602Copy full SHA for 0bba602
pandas/core/indexes/interval.py
@@ -7,6 +7,7 @@
7
from pandas._config import get_option
8
9
from pandas._libs import Timedelta, Timestamp
10
+from pandas._libs.algos import is_monotonic
11
from pandas._libs.interval import Interval, IntervalMixin, IntervalTree
12
from pandas.compat import add_metaclass
13
from pandas.util._decorators import Appender, cache_readonly
@@ -452,7 +453,7 @@ def is_monotonic_increasing(self):
452
453
values = [self.right, self.left]
454
455
sort_order = np.lexsort(values)
- return Index(sort_order).is_monotonic
456
+ return is_monotonic(sort_order, False)[0]
457
458
@cache_readonly
459
def is_monotonic_decreasing(self):
0 commit comments