Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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'})
|