Spaces:
Configuration error
Configuration error
Update preprocess.py
Browse files- preprocess.py +3 -2
preprocess.py
CHANGED
|
@@ -42,8 +42,9 @@ def parse(csv_path):
|
|
| 42 |
os.makedirs(output_folder, exist_ok=True)
|
| 43 |
|
| 44 |
# Step 6: Save the train and test sets as CSV files
|
| 45 |
-
train_file_path = os.path.join(output_folder, "train.csv")
|
| 46 |
-
|
|
|
|
| 47 |
|
| 48 |
train_data.to_csv(train_file_path, index=False)
|
| 49 |
test_data.to_csv(test_file_path, index=False)
|
|
|
|
| 42 |
os.makedirs(output_folder, exist_ok=True)
|
| 43 |
|
| 44 |
# Step 6: Save the train and test sets as CSV files
|
| 45 |
+
# train_file_path = os.path.join(output_folder, "train.csv")
|
| 46 |
+
train_file_path = "data/train.csv"
|
| 47 |
+
test_file_path = "data/test.csv"
|
| 48 |
|
| 49 |
train_data.to_csv(train_file_path, index=False)
|
| 50 |
test_data.to_csv(test_file_path, index=False)
|