RKoops commited on
Commit
c5e5bd9
·
1 Parent(s): 1241f90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import streamlit as st
4
 
5
  # Display title and text
6
  st.title("Week 1 - Data and visualization")
7
- st.markdown("Here we can see the dataframe we've created during this weeks project.")
8
 
9
  # Read dataframe
10
  dataframe = pd.read_csv(
@@ -45,6 +45,7 @@ fig = px.scatter_mapbox(
45
  height=500,
46
  width=800,
47
  hover_name=dataframe["Price"],
 
48
  labels={"color": "Locations"},
49
  )
50
  fig.update_geos(center=dict(lat=dataframe.iloc[0][2], lon=dataframe.iloc[0][3]))
 
4
 
5
  # Display title and text
6
  st.title("Week 1 - Data and visualization")
7
+ st.markdown("Here we can see the dataframe created during this weeks project.")
8
 
9
  # Read dataframe
10
  dataframe = pd.read_csv(
 
45
  height=500,
46
  width=800,
47
  hover_name=dataframe["Price"],
48
+ hover_data=["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]))