In a GeoDataFrame I have a column with the geometry of the polygons (Polygon objects), and another one with Point objects, representing the centroid of the polygons. Now, what I want to do is to be able to join spatially on the centroid column, for example, instead of doing
test = gpd.sjoin(M, Gsq, op="within")
I could do something like
test = gpd.sjoin(M["centroid"], Gsq, op="within")
So far, sjoin works if I overwrite the complete geometry field with the centroid, but that's too ugly. So, any way I can join on a given column?