Skip to content

JanZrimec/Network_analysis_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Network_analysis_tools

Some Jupyter notebook scripts and functions based on DataCamp course: Network analysis in Python (Part 1).

The course data available on datacamp cannot be opened with NetworkX ver. 2.x, since pickled in nx ver. 1.11. Scripts save graph data to Pandas dataframe edgelist and nodelists (including node and edge attributes) and import to nx ver. 2.x.

Original course data is also stored in folder 'datacamp_part1/'.

Export graph to dataframe and import from dataframe

Save graph data to to Pandas dataframe edgelist and nodelists with function in 'datacamp_part1/Networks_pytohn-datasets-19_7_18.ipynb':

G_node_list_pd, G_edge_list_pd = graph_to_frames(G)

Import graph from Pandas dataframe edgelist and nodelist with function in 'datacamp_part1/Networks_pytohn-datasets-20_7_18-import.ipynb':

T = frames_to_graph(T_node_list, T_edge_list, create=nx.DiGraph())

DataCamp course: Network analysis in Python (Part 1)

Local execution of course scripts saved in notebook 'datacamp_part1/Networks_python_part1-19_7_18.ipynb' currently not working.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published