Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def visualize_isnad(taraf_num, yaxis):
|
|
66 |
taraf_hadith_split = [i.split('_') for i in taraf_hadith]
|
67 |
lst_hadith = []
|
68 |
for i in range(len(taraf_hadith_split)):
|
69 |
-
isnad_in_hadith1 = isnad_info['Hadiths Cleaned'].apply(lambda x:
|
70 |
isnad_hadith1 = isnad_info[isnad_in_hadith1][['Source', 'Destination']]
|
71 |
G = nx.from_pandas_edgelist(isnad_hadith1, source = 'Source', target = 'Destination', create_using = nx.DiGraph())
|
72 |
node = [int(n) for n, d in G.out_degree() if d == 0][0]
|
|
|
66 |
taraf_hadith_split = [i.split('_') for i in taraf_hadith]
|
67 |
lst_hadith = []
|
68 |
for i in range(len(taraf_hadith_split)):
|
69 |
+
isnad_in_hadith1 = isnad_info['Hadiths Cleaned'].apply(lambda x: taraf_hadith_split[i] in x )
|
70 |
isnad_hadith1 = isnad_info[isnad_in_hadith1][['Source', 'Destination']]
|
71 |
G = nx.from_pandas_edgelist(isnad_hadith1, source = 'Source', target = 'Destination', create_using = nx.DiGraph())
|
72 |
node = [int(n) for n, d in G.out_degree() if d == 0][0]
|