Skip to content

neighborhood_stats builtin

neighborhood_stats(
    targets,
    coords,
    values,
    *,
    k=8,
    radius=Ellipsis,
    variogram=None,
    holes=None,
)

Distances and value statistics of the k nearest samples around targets; n_holes counts distinct holes within radius; values and holes may name columns of coords.