Update app.py
Browse files
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:
|
23 |
-
matn_info['
|
24 |
-
matn_info
|
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()
|