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

> Construct a Box2D from two corner points (lower-left, upper-right).

Construct a Box2D from two corner points (lower-left, upper-right).

Coordinates are taken verbatim — no swapping or ordering validation. NULL or
empty point inputs return NULL. Non-point inputs raise an error.

SQL reference: [`ST_MakeBox2D`](/reference/wherobots-db/geometry-data/box2d/ST_MakeBox2D)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_constructors import ST_MakeBox2D

ST_MakeBox2D(lower_left: ColumnOrName, upper_right: ColumnOrName) -> Column
```

## Parameters

<ParamField path="lower_left" type="ColumnOrName" required>
  Lower-left corner Point.
</ParamField>

<ParamField path="upper_right" type="ColumnOrName" required>
  Upper-right corner Point.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Box2D column.
</ResponseField>


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