FDSRashid commited on
Commit
242ef4c
·
1 Parent(s): 500663d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def network_visualizer(city, year, num_nodes):
41
  target = row['Student']
42
  attribute_value = row['Hadiths']
43
  edge_color = value_to_hex(attribute_value)
44
- hadith_count = teacher_hadiths[teacher_hadiths['Teacher'] == source.to_list()[0]]['Hadiths'].to_list()[0]
45
 
46
  net.add_node(source, color=value_to_hex(hadith_count), font = {'size':30, 'color': 'orange'})
47
  net.add_node(target, color=value_to_hex(attribute_value) , font = {'size': 20, 'color': 'red'})
 
41
  target = row['Student']
42
  attribute_value = row['Hadiths']
43
  edge_color = value_to_hex(attribute_value)
44
+ hadith_count = teacher_hadiths[teacher_hadiths['Teacher'] == source]['Hadiths'].to_list()[0]
45
 
46
  net.add_node(source, color=value_to_hex(hadith_count), font = {'size':30, 'color': 'orange'})
47
  net.add_node(target, color=value_to_hex(attribute_value) , font = {'size': 20, 'color': 'red'})