Update app.py
Browse files
app.py
CHANGED
|
@@ -219,10 +219,10 @@ def house_price(LotArea, LotFrontage, YearBuilt, GrLivArea, GarageArea):
|
|
| 219 |
'Normal']
|
| 220 |
|
| 221 |
df=pd.DataFrame([default], columns = defaultColumns)
|
| 222 |
-
df.fillna(-1, inplace=True)
|
| 223 |
df[categorical_columns] = df[categorical_columns].astype("category")
|
| 224 |
df[categorical_columns] = df[categorical_columns].apply(lambda x: x.cat.codes)
|
| 225 |
df = (df - df.mean()) / df.std()
|
|
|
|
| 226 |
|
| 227 |
predictions = model.predict(df)
|
| 228 |
|
|
|
|
| 219 |
'Normal']
|
| 220 |
|
| 221 |
df=pd.DataFrame([default], columns = defaultColumns)
|
|
|
|
| 222 |
df[categorical_columns] = df[categorical_columns].astype("category")
|
| 223 |
df[categorical_columns] = df[categorical_columns].apply(lambda x: x.cat.codes)
|
| 224 |
df = (df - df.mean()) / df.std()
|
| 225 |
+
df.fillna(-1, inplace=True)
|
| 226 |
|
| 227 |
predictions = model.predict(df)
|
| 228 |
|