Time series analysis

Intermediate Network Analysis in Python

Eric Ma

Data Carpentry instructor and author of nxviz package

Time series

  • Global vs. local analysis
  • Analyze evolving graph statistics
  • Make plots of key evolving stats
Intermediate Network Analysis in Python

Datetime arithmetic

date1
datetime.datetime(2011, 11, 10, 0, 0)
days = 4
td = timedelta(days)

date1 + td
datetime.datetime(2011, 11, 14, 0, 0)
Intermediate Network Analysis in Python

Degree centrality

G
<networkx.classes.graph.Graph at 0x10e7c04a8>
nx.degree_centrality(G)
{1: 0.5, 'c': 0.5, 'b': 0.25, 2: 0.5, 'a': 0.25}
nx.bipartite.degree_centrality(G, [1, 2])
{1: 0.6666666666666666, 2: 0.6666666666666666,
'b': 0.5, 'c': 1.0, 'a': 0.5}
Intermediate Network Analysis in Python

Let's practice!

Intermediate Network Analysis in Python

Preparing Video For Download...