Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,7 @@ def plot_timeline(yaxis, citi = ['المدينه', 'بغداد', 'كوفة', 'ب
|
|
27 |
raise gr.error('Min Year Cannot be Bigger than Max Year!')
|
28 |
|
29 |
filtered = taraf_s[taraf_s['City'].isin(citi) & (taraf_s['Year'] >= min_year) & (taraf_s['Year'] <= max_year)].drop(['Unnamed: 0', 'Ranking'], axis = 1)
|
|
|
30 |
if 'All' in citi:
|
31 |
tot = taraf_s.groupby(['Year']).sum().reset_index().drop(['Unnamed: 0', 'Ranking'], axis = 1)
|
32 |
tot['City'] = 'All'
|
|
|
27 |
raise gr.error('Min Year Cannot be Bigger than Max Year!')
|
28 |
|
29 |
filtered = taraf_s[taraf_s['City'].isin(citi) & (taraf_s['Year'] >= min_year) & (taraf_s['Year'] <= max_year)].drop(['Unnamed: 0', 'Ranking'], axis = 1)
|
30 |
+
print(filtered)
|
31 |
if 'All' in citi:
|
32 |
tot = taraf_s.groupby(['Year']).sum().reset_index().drop(['Unnamed: 0', 'Ranking'], axis = 1)
|
33 |
tot['City'] = 'All'
|