Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# create dataframe of removable edges
fb_df_ghost = fb_df.loc[omissible_links_index]
# add the target variable 'link'
fb_df_ghost['link'] = 1
data = data.append(fb_df_ghost[['node_1', 'node_2', 'link']], ignore_index=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.