neighbormodels.interactions.multiply_interaction_signs_and_neighbor_count

multiply_interaction_signs_and_neighbor_count(data_frame: pandas.core.frame.DataFrame, interaction_signs_df: pandas.core.frame.DataFrame) → pandas.core.frame.DataFrame[source]

Adds coefficient column to data frame. Compatible with the pandas pipe() method.

Parameters:
  • data_frame – A pandas DataFrame of neighbor counts aggregated over site-index pairs and separation distances.
  • interaction_signs_df – A pandas DataFrame of the signs of the pairwise interactions.
Returns:

A copy of input data_frame with the coefficient column added.