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

> Calculate the symmetric difference of two geometries (the regions that are only in one of them).

Calculate the symmetric difference of two geometries (the regions that are only in one of them).

SQL reference: [`ST_SymDifference`](/reference/wherobots-db/geometry-data/overlay/ST_SymDifference)

## Signature

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

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

## Parameters

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

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

## Returns

<ResponseField name="return" type="Column">
  Geometry representing the symmetric difference of a and b as a geometry column.
</ResponseField>


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