Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -46,8 +46,9 @@ def pred(name):
|
|
46 |
'Snow, Rain, Freezing Drizzle/Freezing Rain, Overcast','Snow, Rain, Ice, Overcast',
|
47 |
'Snow, Rain, Overcast','Snow, Rain, Partially cloudy'],[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])
|
48 |
df_weather = df_weather.drop(columns=["date"]).fillna(0)
|
49 |
-
df_weather.insert(df_weather.index('tempmax'),'aqi')
|
50 |
-
df_weather["aqi"] = 0
|
|
|
51 |
print(df_weather)
|
52 |
# print(feature_view.columns)
|
53 |
preds = model.predict(df_weather)
|
|
|
46 |
'Snow, Rain, Freezing Drizzle/Freezing Rain, Overcast','Snow, Rain, Ice, Overcast',
|
47 |
'Snow, Rain, Overcast','Snow, Rain, Partially cloudy'],[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])
|
48 |
df_weather = df_weather.drop(columns=["date"]).fillna(0)
|
49 |
+
# df_weather.insert(df_weather.index('tempmax'),'aqi')
|
50 |
+
# df_weather["aqi"] = 0
|
51 |
+
df.insert(loc=0, column='aqi', value=0)
|
52 |
print(df_weather)
|
53 |
# print(feature_view.columns)
|
54 |
preds = model.predict(df_weather)
|