Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
6995ee2
1
Parent(s):
b646219
update columns
Browse files
app.py
CHANGED
@@ -54,14 +54,14 @@ def display_tab(input):
|
|
54 |
min_lon=-10.992047,
|
55 |
max_bounds=True,
|
56 |
)
|
57 |
-
filtered_df = df[df[
|
58 |
|
59 |
for index, row in filtered_df.iterrows():
|
60 |
if row["latlng"] is None:
|
61 |
continue
|
62 |
folium.Marker(
|
63 |
location=row["latlng"],
|
64 |
-
tooltip=row[
|
65 |
popup=row["رقم الهاتف (اختياري)"] if not pd.isna(row["رقم الهاتف (اختياري)"]) else None,
|
66 |
).add_to(m)
|
67 |
st_folium(m, use_container_width=True)
|
@@ -90,7 +90,7 @@ for i, option in enumerate(options):
|
|
90 |
selected_options.append(option)
|
91 |
|
92 |
|
93 |
-
filtered_df = df[df[
|
94 |
selected_headers = [headers_mapping[request] for request in selected_options]
|
95 |
st.subheader(", ".join(selected_headers))
|
96 |
|
@@ -110,7 +110,7 @@ for index, row in filtered_df.iterrows():
|
|
110 |
continue
|
111 |
folium.Marker(
|
112 |
location=row["latlng"],
|
113 |
-
tooltip=row[
|
114 |
popup=row["رقم الهاتف (اختياري)"] if not pd.isna(row["رقم الهاتف (اختياري)"]) else None,
|
115 |
).add_to(m)
|
116 |
st_data = st_folium(m, use_container_width=True)
|
|
|
54 |
min_lon=-10.992047,
|
55 |
max_bounds=True,
|
56 |
)
|
57 |
+
filtered_df = df[df[' What are your needs? / ما هي احتياجاتك؟ (أضفها إذا لم يتم ذكرها)'] == input]
|
58 |
|
59 |
for index, row in filtered_df.iterrows():
|
60 |
if row["latlng"] is None:
|
61 |
continue
|
62 |
folium.Marker(
|
63 |
location=row["latlng"],
|
64 |
+
tooltip=row[' لأي قيادة / دوار تنتمون ؟'] if not pd.isna(row[' لأي قيادة / دوار تنتمون ؟']) else None,
|
65 |
popup=row["رقم الهاتف (اختياري)"] if not pd.isna(row["رقم الهاتف (اختياري)"]) else None,
|
66 |
).add_to(m)
|
67 |
st_folium(m, use_container_width=True)
|
|
|
90 |
selected_options.append(option)
|
91 |
|
92 |
|
93 |
+
filtered_df = df[df[' What are your needs? / ما هي احتياجاتك؟ (أضفها إذا لم يتم ذكرها)'].isin(selected_options)]
|
94 |
selected_headers = [headers_mapping[request] for request in selected_options]
|
95 |
st.subheader(", ".join(selected_headers))
|
96 |
|
|
|
110 |
continue
|
111 |
folium.Marker(
|
112 |
location=row["latlng"],
|
113 |
+
tooltip=row[' لأي قيادة / دوار تنتمون ؟'] if not pd.isna(row[' لأي قيادة / دوار تنتمون ؟']) else None,
|
114 |
popup=row["رقم الهاتف (اختياري)"] if not pd.isna(row["رقم الهاتف (اختياري)"]) else None,
|
115 |
).add_to(m)
|
116 |
st_data = st_folium(m, use_container_width=True)
|