Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,7 @@ matn_info = dataset['train'].to_pandas()
|
|
23 |
matn_info = matn_info.drop(97550)
|
24 |
matn_info = matn_info.drop(307206)
|
25 |
matn_info['taraf_ID'] = matn_info['taraf_ID'].replace('KeyAbsent', -1)
|
|
|
26 |
|
27 |
matn_info['Book ID'] = matn_info['bookid_hadithid'].apply(lambda x: int(x.split('_')[0]))
|
28 |
matn_info['Hadith Number'] = matn_info['bookid_hadithid'].apply(lambda x: int(x.split('_')[1]))
|
|
|
23 |
matn_info = matn_info.drop(97550)
|
24 |
matn_info = matn_info.drop(307206)
|
25 |
matn_info['taraf_ID'] = matn_info['taraf_ID'].replace('KeyAbsent', -1)
|
26 |
+
matn_info['taraf_ID'] = matn_info['taraf_ID'].astype(int)
|
27 |
|
28 |
matn_info['Book ID'] = matn_info['bookid_hadithid'].apply(lambda x: int(x.split('_')[0]))
|
29 |
matn_info['Hadith Number'] = matn_info['bookid_hadithid'].apply(lambda x: int(x.split('_')[1]))
|