File tree 2 files changed +2
-29
lines changed
2 files changed +2
-29
lines changed Original file line number Diff line number Diff line change @@ -428,19 +428,6 @@ def _engine(self):
428
428
codes = self .codes
429
429
return self ._engine_type (lambda : codes , len (self ))
430
430
431
- # introspection
432
- @cache_readonly
433
- def is_unique (self ) -> bool :
434
- return self ._engine .is_unique
435
-
436
- @property
437
- def is_monotonic_increasing (self ):
438
- return self ._engine .is_monotonic_increasing
439
-
440
- @property
441
- def is_monotonic_decreasing (self ) -> bool :
442
- return self ._engine .is_monotonic_decreasing
443
-
444
431
@Appender (_index_shared_docs ["index_unique" ] % _index_doc_kwargs )
445
432
def unique (self , level = None ):
446
433
if level is not None :
Original file line number Diff line number Diff line change @@ -437,22 +437,8 @@ def memory_usage(self, deep: bool = False) -> int:
437
437
# so return the bytes here
438
438
return self .left .memory_usage (deep = deep ) + self .right .memory_usage (deep = deep )
439
439
440
- @cache_readonly
441
- def is_monotonic (self ) -> bool :
442
- """
443
- Return True if the IntervalIndex is monotonic increasing (only equal or
444
- increasing values), else False
445
- """
446
- return self .is_monotonic_increasing
447
-
448
- @cache_readonly
449
- def is_monotonic_increasing (self ) -> bool :
450
- """
451
- Return True if the IntervalIndex is monotonic increasing (only equal or
452
- increasing values), else False
453
- """
454
- return self ._engine .is_monotonic_increasing
455
-
440
+ # IntervalTree doesn't have a is_monotonic_decreasing, so have to override
441
+ # the Index implemenation
456
442
@cache_readonly
457
443
def is_monotonic_decreasing (self ) -> bool :
458
444
"""
You can’t perform that action at this time.
0 commit comments