Main
targetlayer_formatter()
Details
Contribution guidelines
Vignettes
Additional resources
Format dataframe to be used by the network methods. It converts the df values to 1, -1 and 0, and outputs a dictionary.
df (DataFrame) – A pandas DataFrame.
n_elements (int) – The number of elements to be selected.
act_col (str) – The column containing the activity scores
sign}
A dictionary {target