Borya-Goldarb commited on
Commit
b05d807
·
verified ·
1 Parent(s): 17b0e61

Update pages/market_rent_estimation.py

Browse files
Files changed (1) hide show
  1. pages/market_rent_estimation.py +2 -2
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 filtered_data.iterrows():
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=index, icon=icon).add_to(m)
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