Skip to content

Commit 118f571

Browse files
committed
ENH: major Cython code cleanup, left_join_indexer bugfix and speed opt, inner_join_indexer speed opt
1 parent 66458b6 commit 118f571

File tree

9 files changed

+869
-485
lines changed

9 files changed

+869
-485
lines changed

pandas/core/index.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -624,16 +624,16 @@ def _join_monotonic(self, other, how='left', return_indexers=False):
624624
if how == 'left':
625625
join_index = self
626626
lidx = None
627-
ridx = lib.left_join_indexer(self, other)
627+
ridx = lib.left_join_indexer_int64(self, other)
628628
elif how == 'right':
629629
join_index = other
630-
lidx = lib.left_join_indexer(other, self)
630+
lidx = lib.left_join_indexer_int64(other, self)
631631
ridx = None
632632
elif how == 'inner':
633-
join_index, lidx, ridx = lib.inner_join_indexer(self, other)
633+
join_index, lidx, ridx = lib.inner_join_indexer_int64(self, other)
634634
join_index = Int64Index(join_index)
635635
elif how == 'outer':
636-
join_index, lidx, ridx = lib.outer_join_indexer(self, other)
636+
join_index, lidx, ridx = lib.outer_join_indexer_int64(self, other)
637637
join_index = Int64Index(join_index)
638638
else:
639639
raise Exception('do not recognize join method %s' % how)

pandas/src/common.pyx

-168
This file was deleted.

0 commit comments

Comments
 (0)