BUG: Use index on dataframe, not on values (GH#190)

This commit is contained in:
Kelsey Jordahl
2015-04-27 23:03:34 -07:00
parent c4d56a3093
commit a2c8de18e6
+1 -1
View File
@@ -79,7 +79,7 @@ def sjoin(left_df, right_df, how='inner', op='intersects',
check_predicates(
left_df['geometry']
.apply(lambda x: prepared.prep(x)).values[l_idx],
right_df['geometry'].values[r_idx])
right_df['geometry'][r_idx])
]))
)