ErickMVdO commited on
Commit
a0f8255
1 Parent(s): e6a9905

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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()