Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created December 28, 2019 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/a1ab7e0af16700c8b91fdc25f6788742 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/a1ab7e0af16700c8b91fdc25f6788742 to your computer and use it in GitHub Desktop.
node_1_unlinked = [i[0] for i in all_unconnected_pairs]
node_2_unlinked = [i[1] for i in all_unconnected_pairs]
data = pd.DataFrame({'node_1':node_1_unlinked,
'node_2':node_2_unlinked})
# add target variable 'link'
data['link'] = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment