williambr commited on
Commit
277aab1
·
1 Parent(s): 5759e2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -15,6 +15,7 @@ city_name = st.text_input("Please search for a city:")
15
  if city_name != "":
16
  lat = df[df["City"] == city_name]["Latitude"].values[0]
17
  lon = df[df["City"] == city_name]["Longitude"].values[0]
 
18
  city_list = []
19
  lat_list = []
20
  long_list = []
@@ -24,6 +25,7 @@ if city_name != "":
24
  long_list.append(lon)
25
  st.map(pd.DataFrame({'cities' : city_list, 'lat' : lat_list, 'lon' : long_list}))
26
  st.write(city_name, "is located at: ", lat, ",", lon)
 
27
 
28
 
29
 
 
15
  if city_name != "":
16
  lat = df[df["City"] == city_name]["Latitude"].values[0]
17
  lon = df[df["City"] == city_name]["Longitude"].values[0]
18
+ zipCode = df[df["City"] == city_name]["Zip"].values[0]
19
  city_list = []
20
  lat_list = []
21
  long_list = []
 
25
  long_list.append(lon)
26
  st.map(pd.DataFrame({'cities' : city_list, 'lat' : lat_list, 'lon' : long_list}))
27
  st.write(city_name, "is located at: ", lat, ",", lon)
28
+ st.write("The zip code is: ", zipCode)
29
 
30
 
31