Update app.py
Browse files
app.py
CHANGED
|
@@ -219,6 +219,7 @@ def house_price(LotArea, LotFrontage, YearBuilt, GrLivArea, GarageArea):
|
|
| 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()
|
|
|
|
| 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()
|