Spaces:
Sleeping
Sleeping
Update pages/market_rent_estimation.py
Browse files
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 |
|