neighbormodels.interactions.spread_parameter_name_column¶
-
spread_parameter_name_column
(data_frame: pandas.core.frame.DataFrame) → pandas.core.frame.DataFrame[source]¶ Spreads interaction parameter names into their own columns with the interaction coefficient as rows. Compatible with the pandas
pipe()
method.Parameters: data_frame – A data frame where the interaction coefficients were summed within groups defined by the magnetic patterns and interaction parameters. Returns: A data frame with the parameter names pivoted into their own columns.