Spaces:
Build error
Build error
Update pages/market_rent_estimation.py
Browse files
pages/market_rent_estimation.py
CHANGED
|
@@ -118,7 +118,7 @@ def main():
|
|
| 118 |
active_markers = folium.FeatureGroup(name='Active Markers', show=False)
|
| 119 |
inactive_markers = folium.FeatureGroup(name='Inactive Markers', show=False)
|
| 120 |
|
| 121 |
-
for index, row in
|
| 122 |
status_color = 'green' if index==0 else 'red'
|
| 123 |
html_content = f"""
|
| 124 |
<div style="
|
|
@@ -138,7 +138,7 @@ def main():
|
|
| 138 |
# Create a DivIcon with custom HTML content
|
| 139 |
icon = folium.DivIcon(html=html_content)
|
| 140 |
# marker = folium.Marker([row['lat'], row['long']], popup=row['google_ola'], icon=icon).add_to(m)
|
| 141 |
-
marker = folium.Marker([row['lat'], row['long']], popup=
|
| 142 |
|
| 143 |
|
| 144 |
#add poligons on map
|
|
|
|
| 118 |
active_markers = folium.FeatureGroup(name='Active Markers', show=False)
|
| 119 |
inactive_markers = folium.FeatureGroup(name='Inactive Markers', show=False)
|
| 120 |
|
| 121 |
+
for index, row in filtered_data_sorted.iterrows():
|
| 122 |
status_color = 'green' if index==0 else 'red'
|
| 123 |
html_content = f"""
|
| 124 |
<div style="
|
|
|
|
| 138 |
# Create a DivIcon with custom HTML content
|
| 139 |
icon = folium.DivIcon(html=html_content)
|
| 140 |
# marker = folium.Marker([row['lat'], row['long']], popup=row['google_ola'], icon=icon).add_to(m)
|
| 141 |
+
marker = folium.Marker([row['lat'], row['long']], popup=row['Address'], icon=icon).add_to(m)
|
| 142 |
|
| 143 |
|
| 144 |
#add poligons on map
|