Skip to content

Commit

Permalink
TST: IntervalTree.get_loc_interval should return platform int (pandas…
Browse files Browse the repository at this point in the history
  • Loading branch information
jschendel authored and JustinZhengBC committed Nov 14, 2018
1 parent 951041e commit d5d6d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/_libs/intervaltree.pxi.in
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ cdef class IntervalTree(IntervalMixin):
enclosing = self.get_loc(0.5 * (key_left + key_right))
combined = np.concatenate([left_overlap, right_overlap, enclosing])
uniques = pd.unique(combined)
return uniques
return uniques.astype('intp')

def get_indexer(self, scalar_t[:] target):
"""Return the positions corresponding to unique intervals that overlap
Expand Down

0 comments on commit d5d6d91

Please sign in to comment.