FDSRashid commited on
Commit
d64b5aa
·
1 Parent(s): 3d91b60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def network_visualizer(yaxis, city, fstyear,lastyr, num_nodes):
67
  edge_color = value_to_hex(np.log10(attribute_value))
68
  teacher_info = narrator_bios[narrator_bios['Rawi ID'] == row['Teacher_ID']]
69
  student_info = narrator_bios[narrator_bios['Rawi ID'] == row['Student_ID']]
70
-
71
 
72
  net.add_node(source, color=value_to_hex(teacher_info['Number of Narrations'][0]), font = {'size':30, 'color': 'orange'})#, label = f"{source}\n{yaxis}: {hadith_count}")
73
  net.add_node(target, color=value_to_hex(student_info['Number of Narrations'][0]) , font = {'size': 20, 'color': 'red'})#, label = f"{target}\n{yaxis}: {student_count}")
 
67
  edge_color = value_to_hex(np.log10(attribute_value))
68
  teacher_info = narrator_bios[narrator_bios['Rawi ID'] == row['Teacher_ID']]
69
  student_info = narrator_bios[narrator_bios['Rawi ID'] == row['Student_ID']]
70
+ print(teacher_info)
71
 
72
  net.add_node(source, color=value_to_hex(teacher_info['Number of Narrations'][0]), font = {'size':30, 'color': 'orange'})#, label = f"{source}\n{yaxis}: {hadith_count}")
73
  net.add_node(target, color=value_to_hex(student_info['Number of Narrations'][0]) , font = {'size': 20, 'color': 'red'})#, label = f"{target}\n{yaxis}: {student_count}")