mirror of
https://github.com/wassname/geopandas.git
synced 2026-10-03 12:31:14 +08:00
Better construction of r_idx
This commit is contained in:
1 parent
54fc5b43f4
commit
d43d5e37ef
1 file changed
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user