> ## 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.explode

> Explode multi-part geometries into multiple single geometries.

Explode multi-part geometries into multiple single geometries.

Single rows can become multiple rows. This is analogous to PostGIS
`ST_Dump`. Geometry collections are expanded by one level, so a
multi-part geometry nested in a collection remains multi-part.

## Signature

```python theme={"system"}
explode(ignore_index=False, index_parts=False) -> GeoSeries
```

## Parameters

<ParamField path="ignore_index" type="bool" default="False">
  If True, the resulting index is labelled 0, 1, ..., n - 1 and
  `index_parts` is ignored.
</ParamField>

<ParamField path="index_parts" type="bool" default="False">
  If True, append a zero-based index level identifying each geometry
  produced from an input row.
</ParamField>

## Returns

<ResponseField name="return" type="GeoSeries">
  Exploded geometries. The original index is repeated by default.
</ResponseField>

## Examples

```python theme={"system"}
>>> from sedona.spark.geopandas import GeoSeries
>>> from shapely.geometry import MultiPoint
>>> s = GeoSeries(
...     [MultiPoint([(0, 0), (1, 1)]), MultiPoint([(2, 2), (3, 3)])]
... )
>>> s.explode(index_parts=True)
0  0    POINT (0 0)
   1    POINT (1 1)
1  0    POINT (2 2)
   1    POINT (3 3)
dtype: geometry
```


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