geopandas point in polygon
Not really clear what kind of data structures you actually have. Also, all your expected results are False, so that’s kind of hard to check. Assuming GeoSeries and GeoDataFrames, I would do this: from shapely.geometry import Point, Polygon import geopandas polys = geopandas.GeoSeries({ ‘foo’: Polygon([(5, 5), (5, 13), (13, 13), (13, 5)]), ‘bar’: Polygon([(10, 10), … Read more