Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def network_narrator(narrator_id, fst_year, lst_year, yaxis):
|
|
53 |
edges = subsetEdges(fst_year, lst_year)
|
54 |
edges_single = edges[(edges['Teacher_ID']==narrator_id) | (edges['Student_ID']==narrator_id)]
|
55 |
edges_prepped = splitIsnad(edges_single)
|
56 |
-
net = Network()
|
57 |
for _, row in edges_prepped.iterrows():
|
58 |
source = row['Teacher']
|
59 |
target = row['Student']
|
|
|
53 |
edges = subsetEdges(fst_year, lst_year)
|
54 |
edges_single = edges[(edges['Teacher_ID']==narrator_id) | (edges['Student_ID']==narrator_id)]
|
55 |
edges_prepped = splitIsnad(edges_single)
|
56 |
+
net = Network(directed =True)
|
57 |
for _, row in edges_prepped.iterrows():
|
58 |
source = row['Teacher']
|
59 |
target = row['Student']
|