FDSRashid commited on
Commit
fa12504
·
verified ·
1 Parent(s): 261d935

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: list_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]
 
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]