Better construction of r_idx

This commit is contained in:
Matthew Bartos committed 2015-04-11 15:20:21 -07:00
1 parent 54fc5b43f4
commit d43d5e37ef
1 file changed
+1 -1
+1 -1
View File
@@ -52,7 +52,7 @@ def sjoin(left_df, right_df, how='inner', op='intersects', lsuffix='left', rsuff
idxmatch = idxmatch[idxmatch.str.len() > 0]
r_idx = np.concatenate(idxmatch.values)
l_idx = np.concatenate((idxmatch.str.len()*pd.Series([[i] for i in idxmatch.index], index=idxmatch.index)).values)
l_idx = idxmatch.index.values.repeat(idxmatch.str.len().values)
# VECTORIZE PREDICATE OPERATIONS
def find_intersects(a1, a2):