Skip to main content
Calculate Getis Ord Gi(*) statistics on the given column. SQL reference: ST_GLocal

Signature

Parameters

ColumnOrName
required
The variable to compute Gi statistics for.
ColumnOrName
required
The weights array containing the neighbors, their weights, and their values of x, such as the column ST_BinaryDistanceBandColumn or ST_WeightedDistanceBandColumn creates.
Optional[Union[ColumnOrName, bool]]
default:"False"
Whether to include the focal observation in the calculations, computing Gi* instead of Gi. Default is False.

Returns

Column
Struct with the G, EG, VG, Z and P statistics.