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

> Calculate the local outlier factor on the given geometry column.

Calculate the local outlier factor on the given geometry column.

@param geometry: Geometry column or name

SQL reference: [`ST_LocalOutlierFactor`](/reference/wherobots-db/geometry-data/clustering/ST_LocalOutlierFactor)

## Signature

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

ST_LocalOutlierFactor(
    geometry: ColumnOrName,
    k: Union[ColumnOrName, int],
    use_spheroid: Optional[Union[ColumnOrName, bool]] = False,
) -> Column
```

## Parameters

<ParamField path="geometry" type="ColumnOrName" required />

<ParamField path="k" type="Union[ColumnOrName, int]" required />

<ParamField path="use_spheroid" type="Optional[Union[ColumnOrName, bool]]" default="False" />


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