Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ def network_visualizer(yaxis, city, fstyear,lastyr, num_nodes):
|
|
| 49 |
source = row['Teacher']
|
| 50 |
target = row['Student']
|
| 51 |
attribute_value = row[yaxis]
|
| 52 |
-
edge_color = value_to_hex(np.
|
| 53 |
hadith_count = teacher_hadiths[teacher_hadiths['Teacher'] == source][yaxis].to_list()[0]
|
| 54 |
student_count = student_hadiths[student_hadiths['Student'] == target][yaxis].to_list()[0]
|
| 55 |
|
|
|
|
| 49 |
source = row['Teacher']
|
| 50 |
target = row['Student']
|
| 51 |
attribute_value = row[yaxis]
|
| 52 |
+
edge_color = value_to_hex(np.log10(attribute_value))
|
| 53 |
hadith_count = teacher_hadiths[teacher_hadiths['Teacher'] == source][yaxis].to_list()[0]
|
| 54 |
student_count = student_hadiths[student_hadiths['Student'] == target][yaxis].to_list()[0]
|
| 55 |
|