geopandas.tools.collect

geopandas.tools.collect(x, multi=False)

Collect single part geometries into their Multi* counterpart

Parameters
xan iterable or Series of Shapely geometries, a GeoSeries, or

a single Shapely geometry

multiboolean, default False

if True, force returned geometries to be Multi* even if they only have one component.