Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ def visualize_isnad(taraf_num, yaxis):
|
|
83 |
gen_node = narrator_bios[narrator_bios['Rawi ID']==node]['Generation'].iloc[0]
|
84 |
name_node = narrator_bios[narrator_bios['Rawi ID']==node]['Famous Name'].iloc[0]
|
85 |
lst_hadith.append([taraf_matns[i], gen_node, name_node, taraf_book[i], taraf_author[i], taraf_hadith_number[i]])
|
86 |
-
df = pd.DataFrame(lst_hadith, columns = ['Matn', 'Generation', 'Name'])
|
87 |
|
88 |
hadith_cleaned = isnad_info['Hadiths Cleaned'].apply(lambda x: any(i in x for i in taraf_hadith_split) )
|
89 |
isnad_hadith = isnad_info[hadith_cleaned][['Source', 'Destination']]
|
|
|
83 |
gen_node = narrator_bios[narrator_bios['Rawi ID']==node]['Generation'].iloc[0]
|
84 |
name_node = narrator_bios[narrator_bios['Rawi ID']==node]['Famous Name'].iloc[0]
|
85 |
lst_hadith.append([taraf_matns[i], gen_node, name_node, taraf_book[i], taraf_author[i], taraf_hadith_number[i]])
|
86 |
+
df = pd.DataFrame(lst_hadith, columns = ['Matn', 'Generation', 'Name', 'Book', 'Author', 'Hadith Number'])
|
87 |
|
88 |
hadith_cleaned = isnad_info['Hadiths Cleaned'].apply(lambda x: any(i in x for i in taraf_hadith_split) )
|
89 |
isnad_hadith = isnad_info[hadith_cleaned][['Source', 'Destination']]
|