FDSRashid commited on
Commit
37a7276
·
verified ·
1 Parent(s): c068b81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -19,11 +19,9 @@ matn_info = matn_info.drop(97550)
19
  matn_info = matn_info.drop(307206)
20
  matn_info['taraf_ID'] = matn_info['taraf_ID'].replace('KeyAbsent', -1)
21
 
22
- matn_info['Book'] = matn_info['bookid_hadithid'].apply(lambda x: books[books['Book_ID'] == int(x.split('_')[0])]['Book_Name'].to_list()[0])
23
- matn_info['Author'] = matn_info['bookid_hadithid'].apply(lambda x: books[books['Book_ID'] == int(x.split('_')[0])]['Author'].to_list()[0])
24
- matn_info['Hadith Number'] = matn_info['bookid_hadithid'].apply(lambda x: x.split('_')[1])
25
-
26
-
27
 
28
  joined_df = matn_info.merge(df, left_index=True, right_on='__index_level_0__')
29
  df = joined_df.copy()
 
19
  matn_info = matn_info.drop(307206)
20
  matn_info['taraf_ID'] = matn_info['taraf_ID'].replace('KeyAbsent', -1)
21
 
22
+ matn_info['Book ID'] = matn_info['bookid_hadithid'].apply(lambda x: int(x.split('_')[0]))
23
+ matn_info['Hadith Number'] = matn_info['bookid_hadithid'].apply(lambda x: int(x.split('_')[1]))
24
+ matn_info = matn_info.join(books, on='Book ID')
 
 
25
 
26
  joined_df = matn_info.merge(df, left_index=True, right_on='__index_level_0__')
27
  df = joined_df.copy()