RKoops commited on
Commit
dddade3
·
1 Parent(s): d46bb74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
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
- lat=dataframe["Latitude"],
42
- lon=dataframe["Longitude"],
43
- color=dataframe["Location"],
 
44
  zoom=11,
45
  height=500,
46
  width=800,
47
- hover_name=dataframe["Price"],
48
- hover_data=dataframe["Meters from chosen location", "Location"],
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]))