We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5913382 commit 3e32db5Copy full SHA for 3e32db5
pandas/core/indexes/interval.py
@@ -5,6 +5,7 @@
5
import numpy as np
6
7
from pandas._libs import Timedelta, Timestamp
8
+from pandas._libs.algos import is_monotonic
9
from pandas._libs.interval import Interval, IntervalMixin, IntervalTree
10
from pandas.compat import add_metaclass
11
from pandas.util._decorators import Appender, cache_readonly
@@ -451,7 +452,7 @@ def is_monotonic_increasing(self):
451
452
values = [self.right, self.left]
453
454
sort_order = np.lexsort(values)
- return Index(sort_order).is_monotonic
455
+ return is_monotonic(sort_order, False)[0]
456
457
@cache_readonly
458
def is_monotonic_decreasing(self):
0 commit comments