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

> Calculate Getis Ord Gi(*) statistics on the given column.

Calculate Getis Ord Gi(\*) statistics on the given column.

@param x: The variable we want to compute Gi statistics for

SQL reference: [`ST_GLocal`](/reference/wherobots-db/geometry-data/spatial-statistics/ST_GLocal)

## Signature

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

ST_GLocal(
    x: ColumnOrName,
    weights: ColumnOrName,
    star: Optional[Union[ColumnOrName, bool]] = False,
) -> Column
```

## Parameters

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

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

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


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