Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,25 @@ df = pd.read_csv("city_temperature.csv")
|
|
31 |
city_input = st.selectbox(
|
32 |
'Which region do you want to predict temparature ?',
|
33 |
("all",
|
34 |
-
"
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
def mergeStateToCountry():
|
38 |
df.loc[df['State'].notna(), 'Country'] = df['State']
|
|
|
31 |
city_input = st.selectbox(
|
32 |
'Which region do you want to predict temparature ?',
|
33 |
("all",
|
34 |
+
df["Region"].unique()), index=0)
|
35 |
+
|
36 |
+
city_input = st.selectbox(
|
37 |
+
'Which region do you want to predict temparature ?',
|
38 |
+
("all",
|
39 |
+
df["Region"].drop_duplicates()), index=0)
|
40 |
+
|
41 |
+
test = df["Region"].unique()
|
42 |
+
test2 = df["Region"].drop_duplicates()
|
43 |
+
|
44 |
+
city_input = st.selectbox(
|
45 |
+
'Which region do you want to predict temparature ?',
|
46 |
+
("all",
|
47 |
+
test), index=0)
|
48 |
+
|
49 |
+
city_input = st.selectbox(
|
50 |
+
'Which region do you want to predict temparature ?',
|
51 |
+
("all",
|
52 |
+
test2), index=0)
|
53 |
|
54 |
def mergeStateToCountry():
|
55 |
df.loc[df['State'].notna(), 'Country'] = df['State']
|