Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created December 29, 2019 07:15
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/b26ae6f4ba87cc29c957ccde34588dd9 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/b26ae6f4ba87cc29c957ccde34588dd9 to your computer and use it in GitHub Desktop.
# drop removable edges
fb_df_partial = fb_df.drop(index=fb_df_ghost.index.values)
# build graph
G_data = nx.from_pandas_edgelist(fb_df_partial, "node_1", "node_2", create_using=nx.Graph())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment