Spaces:
Sleeping
Sleeping
Upload train.py with huggingface_hub
Browse files
train.py
CHANGED
|
@@ -59,14 +59,14 @@ class FeatureEngineer(BaseEstimator, TransformerMixin):
|
|
| 59 |
# They should be consistent with the features defined in the overall dataset.
|
| 60 |
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
.str.strip()
|
| 65 |
.str.replace(" ","_")
|
| 66 |
.str.replace(r"[^\w]","_",regex=True)
|
| 67 |
.str.lower()
|
| 68 |
)
|
| 69 |
-
|
| 70 |
|
| 71 |
core_sensor_cols =df.columns.tolist()
|
| 72 |
|
|
|
|
| 59 |
# They should be consistent with the features defined in the overall dataset.
|
| 60 |
|
| 61 |
|
| 62 |
+
print("columna names #######################\n",df.columns)
|
| 63 |
+
df.columns = (df.columns
|
| 64 |
.str.strip()
|
| 65 |
.str.replace(" ","_")
|
| 66 |
.str.replace(r"[^\w]","_",regex=True)
|
| 67 |
.str.lower()
|
| 68 |
)
|
| 69 |
+
print("columna names #######################\n",df.columns)
|
| 70 |
|
| 71 |
core_sensor_cols =df.columns.tolist()
|
| 72 |
|