Borya-Goldarb commited on
Commit
c4601a7
·
verified ·
1 Parent(s): 3c47b58

Update pages/market_rent_estimation.py

Browse files
Files changed (1) hide show
  1. pages/market_rent_estimation.py +9 -0
pages/market_rent_estimation.py CHANGED
@@ -8,6 +8,7 @@ import matplotlib.pyplot as plt
8
  import seaborn as sns
9
  from datetime import datetime, timedelta
10
  import ast
 
11
 
12
 
13
  def main():
@@ -173,6 +174,14 @@ def main():
173
  icon = folium.DivIcon(html=html_content)
174
  marker = folium.Marker([row['lat'], row['long']], popup=row['google_ola'], icon=icon).add_to(m)
175
 
 
 
 
 
 
 
 
 
176
  # Add layer control to toggle marker visibility
177
  folium.LayerControl().add_to(m)
178
 
 
8
  import seaborn as sns
9
  from datetime import datetime, timedelta
10
  import ast
11
+ import geopandas as gpd
12
 
13
 
14
  def main():
 
174
  icon = folium.DivIcon(html=html_content)
175
  marker = folium.Marker([row['lat'], row['long']], popup=row['google_ola'], icon=icon).add_to(m)
176
 
177
+
178
+ #add poligons on map
179
+ gdf = gpd.read_file('costar_sm_polygons.geojson')
180
+ gdf_Atlanta = gdf[gdf.full_submarket.str.contains("Atlanta")]
181
+ folium.GeoJson(data=gdf_Atlanta.geometry.to_json(), name='geojson').add_to(m)
182
+
183
+
184
+
185
  # Add layer control to toggle marker visibility
186
  folium.LayerControl().add_to(m)
187