We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20bdb3e commit 2e1ce1aCopy full SHA for 2e1ce1a
pandas/_libs/intervaltree.pxi.in
@@ -116,7 +116,7 @@ cdef class IntervalTree(IntervalMixin):
116
enclosing = self.get_loc(0.5 * (key_left + key_right))
117
combined = np.concatenate([left_overlap, right_overlap, enclosing])
118
uniques = pd.unique(combined)
119
- return uniques
+ return uniques.astype('intp')
120
121
def get_indexer(self, scalar_t[:] target):
122
"""Return the positions corresponding to unique intervals that overlap
0 commit comments