Skip to content

Commit 23650ef

Browse files
committed
Remove the exception for the mixed type
1 parent 445fbe5 commit 23650ef

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

pandas/core/indexes/interval.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -450,13 +450,8 @@ def is_monotonic_increasing(self):
450450
"""
451451
values = [self.right, self.left]
452452

453-
try:
454-
sort_order = np.lexsort(values)
455-
return Index(sort_order).is_monotonic
456-
except TypeError:
457-
458-
# we have mixed types and np.lexsort is not happy
459-
return Index(self.values).is_monotonic
453+
sort_order = np.lexsort(values)
454+
return Index(sort_order).is_monotonic
460455

461456
@cache_readonly
462457
def is_monotonic_decreasing(self):

0 commit comments

Comments
 (0)