neighbormodels.neighbors.count_neighbors_within_distance_groups¶
-
count_neighbors_within_distance_groups
(grouped_distances: pandas.core.groupby.generic.DataFrameGroupBy) → pandas.core.frame.DataFrame[source]¶ Count number of neighbors within each group of same-distance site-index pairs.
Parameters: grouped_distances – A data frame grouped over site-index pairs, subspecies pairs, and bin intervals. Returns: A pandas DataFrame
of neighbor counts aggregated over site-index pairs and separation distances.