Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,9 +18,13 @@ if city != "":
|
|
18 |
state_name = split_city_state[1]
|
19 |
city_name = split_city_state[0]
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
24 |
city_list = []
|
25 |
lat_list = []
|
26 |
long_list = []
|
|
|
18 |
state_name = split_city_state[1]
|
19 |
city_name = split_city_state[0]
|
20 |
|
21 |
+
city_df = df[df["City"] == city_name]
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
lat = state_df[state_df["State" = state_name]["Latitude"].values[0]
|
26 |
+
lon = state_df[state_df["State" = state_name]["Longitude"].values[0]
|
27 |
+
zipCode = state_df[state_df["State" = state_name]["Zip"].values[0]
|
28 |
city_list = []
|
29 |
lat_list = []
|
30 |
long_list = []
|