We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2618b21 commit 72f4098Copy full SHA for 72f4098
pandas/_libs/interval.pyx
@@ -106,12 +106,7 @@ cdef class IntervalMixin(object):
106
@property
107
def length(self):
108
"""Return the length of the Interval"""
109
- try:
110
- return self.right - self.left
111
- except TypeError:
112
- # length not defined for some types, e.g. string
113
- msg = 'cannot compute length between {left!r} and {right!r}'
114
- raise TypeError(msg.format(left=self.left, right=self.right))
+ return self.right - self.left
115
116
def _check_closed_matches(self, other, name='other'):
117
"""Check if the closed attribute of `other` matches.
0 commit comments