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

# ST_Centroid (Python)

> Calculate the centroid of the given geometry column.

Calculate the centroid of the given geometry column.

SQL reference: [`ST_Centroid`](/reference/wherobots-db/geometry-data/processing/ST_Centroid)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_Centroid

ST_Centroid(geometry: ColumnOrName) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to calculate a centroid for.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Centroid of geometry as a point geometry column.
</ResponseField>


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