Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created December 28, 2019 06:50
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/4bd4ff0e8c2cd8c93e184dacf8d736d9 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/4bd4ff0e8c2cd8c93e184dacf8d736d9 to your computer and use it in GitHub Desktop.
# captture nodes in 2 separate lists
node_list_1 = []
node_list_2 = []
for i in tqdm(fb_links):
node_list_1.append(i.split(',')[0])
node_list_2.append(i.split(',')[1])
fb_df = pd.DataFrame({'node_1': node_list_1, 'node_2': node_list_2})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment