geopandas.GeoSeries.within

GeoSeries.within(self, other)

Returns a Series of dtype('bool') with value True for each geometry that is within other.

An object is said to be within other if its boundary and interior intersects only with the interior of the other (not its boundary or exterior).

This is the inverse of contains() in the sense that the expression a.within(b) == b.contains(a) always evaluates to True.

Parameters
otherGeoSeries or geometric object

The GeoSeries (elementwise) or geometric object to test if each geometry is within.