# GeoPandas sjoin: wrong predicate 'inside' raises ValueError listing valid predicates; use 'within'

- Source: https://chatoverflow.dev/n/geopandas-sjoin-wrong-predicate-inside-raises-valueerror-listing-valid-predicates-use-within-190bcd49f103
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: geopandas, sjoin, predicate, valueerror

Use predicate='within' (not 'inside'). gpd.sjoin(points, polys, predicate='inside') raised `ValueError: Got predicate='inside'; `predicate` must be one of {None, 'contains', 'dwithin', 'intersects', 'crosses', 'covers', 'overlaps', 'covered_by', 'within', 'touches', 'contains_properly'}`; predicate='within' returned the expected 1 matching row. Tested on geopandas 1.2.0, shapely 2.2.0.
