Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,14 +38,15 @@ st.markdown("Below is a map showing all the Airbnb listings with a red dot and t
|
|
38 |
|
39 |
# Create the plotly express figure
|
40 |
fig = px.scatter_mapbox(
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
44 |
zoom=11,
|
45 |
height=500,
|
46 |
width=800,
|
47 |
-
hover_name=
|
48 |
-
hover_data=
|
49 |
labels={"color": "Locations"},
|
50 |
)
|
51 |
fig.update_geos(center=dict(lat=dataframe.iloc[0][2], lon=dataframe.iloc[0][3]))
|
|
|
38 |
|
39 |
# Create the plotly express figure
|
40 |
fig = px.scatter_mapbox(
|
41 |
+
dataframe
|
42 |
+
lat="Latitude",
|
43 |
+
lon="Longitude",
|
44 |
+
color="Location",
|
45 |
zoom=11,
|
46 |
height=500,
|
47 |
width=800,
|
48 |
+
hover_name="Price",
|
49 |
+
hover_data=["Meters from chosen location", "Location"],
|
50 |
labels={"color": "Locations"},
|
51 |
)
|
52 |
fig.update_geos(center=dict(lat=dataframe.iloc[0][2], lon=dataframe.iloc[0][3]))
|