I want make a spatial join with my two spatially enabled dataframe. But while doing a join between the two dataframes. I got below errors.
joined_sedf = sedf_cables.spatial.join(sedf_sub_assignment[['SHAPE']], how="inner", op="intersects")
Can anyone let me know why this error appear and how i will be able make a join between the two dataframes where one is polygon and another is one is a line feature.
Solved! Go to Solution.
spatial_relationship = 'intersects'
# Perform the spatial join
sedf_cable_joined = sedf_sub_assignment.spatial.join(sedf_cables, op=spatial_relationship)
After using the above code join using spatially enabled dataframe is now working.
yes they are.
spatial_relationship = 'intersects'
# Perform the spatial join
sedf_cable_joined = sedf_sub_assignment.spatial.join(sedf_cables, op=spatial_relationship)
After using the above code join using spatially enabled dataframe is now working.