> ## 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_XMax (Python)

> Calculate the maximum X coordinate for a geometry.

Calculate the maximum X coordinate for a geometry.

SQL reference: [`ST_XMax`](/reference/wherobots-db/geometry-data/bounding-box/ST_XMax)

## Signature

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

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

## Parameters

<ParamField path="geometry" type="ColumnOrName" required>
  Geometry column to get maximum X coordinate for.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Maximum X coordinate for the geometry as a double column.
</ResponseField>


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