Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def get_narrators( city , year1, year2):
|
|
52 |
fixed = splitIsnad(narrators)
|
53 |
fixed['Teacher Reports'] = fixed['Teacher_ID'].apply(lambda x: narrator_bios[narrator_bios['Rawi ID']== x]['Number of Narrations'].to_list()[0])
|
54 |
fixed['Student Reports'] = fixed['Student_ID'].apply(lambda x: narrator_bios[narrator_bios['Rawi ID']== x]['Number of Narrations'].to_list()[0])
|
55 |
-
return fixed[['Teacher', 'Student', 'Teacher Reports', 'Student Reports']]
|
56 |
except Exception as e:
|
57 |
return str(e)
|
58 |
|
|
|
52 |
fixed = splitIsnad(narrators)
|
53 |
fixed['Teacher Reports'] = fixed['Teacher_ID'].apply(lambda x: narrator_bios[narrator_bios['Rawi ID']== x]['Number of Narrations'].to_list()[0])
|
54 |
fixed['Student Reports'] = fixed['Student_ID'].apply(lambda x: narrator_bios[narrator_bios['Rawi ID']== x]['Number of Narrations'].to_list()[0])
|
55 |
+
return fixed[['Teacher', 'Student', 'Teacher Reports', 'Student Reports', 'Isnads', 'Hadiths', 'Tarafs', 'Books']]
|
56 |
except Exception as e:
|
57 |
return str(e)
|
58 |
|