> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GeoSeries.unary_union

> Returns a geometry containing the union of all geometries in the GeoSeries.

Returns a geometry containing the union of all geometries in the
`GeoSeries`.

Deprecated: The `unary_union` attribute is deprecated. Use
`union_all` instead.

## Signature

```python theme={"system"}
GeoSeries.unary_union
```

## Returns

<ResponseField name="return" type="Geometry" />

## Examples

```python theme={"system"}
>>> from sedona.spark.geopandas import GeoSeries
>>> from shapely.geometry import box
>>> s = GeoSeries([box(0, 0, 1, 1), box(0, 0, 2, 2)])
>>> s.unary_union.wkt
'POLYGON ((0 1, 0 2, 2 2, 2 0, 1 0, 0 0, 0 1))'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.