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

> Check if geometry a is within geometry b.

Check if geometry a is within geometry b.

SQL reference: [`ST_Within`](/reference/wherobots-db/geometry-data/predicates/ST_Within)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_predicates import ST_Within

ST_Within(a: ColumnOrName, b: ColumnOrName) -> Column
```

## Parameters

<ParamField path="a" type="ColumnOrName" required>
  Geometry column to check.
</ParamField>

<ParamField path="b" type="ColumnOrName" required>
  Geometry column to check.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  True if a is within b and False otherwise, as a boolean column.
</ResponseField>


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