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

> Calculate the 3-dimensional minimum Cartesian distance between two geometry columns.

Calculate the 3-dimensional minimum Cartesian distance between two geometry columns.

SQL reference: [`ST_3DDistance`](/reference/wherobots-db/geometry-data/measurement/ST_3DDistance)

## Signature

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

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

## Parameters

<ParamField path="a" type="ColumnOrName" required>
  One geometry column to use in the calculation.
</ParamField>

<ParamField path="b" type="ColumnOrName" required>
  Other geometry column to use in the calculation.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Minimum cartesian distance between a and b as a double column.
</ResponseField>


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