geopandas.GeoSeries.contains

GeoSeries.contains(self, other)

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

An object is said to contain other if its interior contains the boundary and interior of the other object and their boundaries do not touch at all.

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

Parameters
otherGeoSeries or geometric object

The GeoSeries (elementwise) or geometric object to test if is contained.