Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -222,7 +222,7 @@ def process_dataframe(df):
|
|
| 222 |
# Create two DataFrames: one for prediction and one for classification.
|
| 223 |
df_pred = df[required_columns].copy()
|
| 224 |
#df_pred = df_pred[(df_pred[['EngCts']] > 0.99).all(axis=1) & (df_pred[['EngCts']] < 1.50).all(axis=1)]
|
| 225 |
-
df_pred[['EngBlk', 'EngWht', 'EngOpen', 'EngPav']]=df_pred[['EngBlk', 'EngWht', 'EngOpen', 'EngPav']].fillna("
|
| 226 |
df_class = df[required_columns_2].fillna("NA").copy()
|
| 227 |
|
| 228 |
# Transform categorical columns for prediction DataFrame using the label encoders.
|
|
|
|
| 222 |
# Create two DataFrames: one for prediction and one for classification.
|
| 223 |
df_pred = df[required_columns].copy()
|
| 224 |
#df_pred = df_pred[(df_pred[['EngCts']] > 0.99).all(axis=1) & (df_pred[['EngCts']] < 1.50).all(axis=1)]
|
| 225 |
+
df_pred[['EngBlk', 'EngWht', 'EngOpen', 'EngPav']]=df_pred[['EngBlk', 'EngWht', 'EngOpen', 'EngPav']].fillna("NA")
|
| 226 |
df_class = df[required_columns_2].fillna("NA").copy()
|
| 227 |
|
| 228 |
# Transform categorical columns for prediction DataFrame using the label encoders.
|