Created
October 21, 2019 07:28
-
-
Save shubham-singh-ss/2b1bf1815be47893ad65e4bd530284b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import networkx as nx | |
df = nx.from_pandas_edgelist(data, source='Origin', target='Dest', edge_attr=True) | |
df.nodes() | |
df.edges() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment