File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -184,12 +184,13 @@ def time_get_loc(self):
184
184
class IntervalIndexMethod (object ):
185
185
# GH 24813
186
186
def setup (self ):
187
- N = 10000
187
+ N = 10 ** 5
188
188
left = np .append (np .arange (N ), np .array (0 ))
189
189
right = np .append (np .arange (1 , N + 1 ), np .array (1 ))
190
190
self .intv = IntervalIndex .from_arrays (left , right )
191
191
192
192
def time_monotonic_inc (self ):
193
193
self .intv .is_monotonic_increasing
194
194
195
+
195
196
from .pandas_vb_common import setup # noqa: F401
Original file line number Diff line number Diff line change @@ -440,7 +440,7 @@ def is_monotonic(self):
440
440
Return True if the IntervalIndex is monotonic increasing (only equal or
441
441
increasing values), else False
442
442
"""
443
- return self ._multiindex . is_monotonic
443
+ return self .is_monotonic_increasing
444
444
445
445
@cache_readonly
446
446
def is_monotonic_increasing (self ):
@@ -458,8 +458,6 @@ def is_monotonic_increasing(self):
458
458
# we have mixed types and np.lexsort is not happy
459
459
return Index (self .values ).is_monotonic
460
460
461
- return self ._multiindex .is_monotonic_increasing
462
-
463
461
@cache_readonly
464
462
def is_monotonic_decreasing (self ):
465
463
"""
You can’t perform that action at this time.
0 commit comments