Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
debf871
1
Parent(s):
d17a51b
Update process_data.py
Browse files- src/data/process_data.py +0 -1
src/data/process_data.py
CHANGED
@@ -13,7 +13,6 @@ def process_data(split="train"):
|
|
13 |
df = df.sample(frac=params["split"], replace=True, random_state=1)
|
14 |
if os.path.exists("data/raw/{}.csv".format(split)):
|
15 |
os.remove("data/raw/{}.csv".format(split))
|
16 |
-
df.to_csv('data/processed/{}.csv'.format(split))
|
17 |
|
18 |
|
19 |
if __name__ == '__main__':
|
|
|
13 |
df = df.sample(frac=params["split"], replace=True, random_state=1)
|
14 |
if os.path.exists("data/raw/{}.csv".format(split)):
|
15 |
os.remove("data/raw/{}.csv".format(split))
|
|
|
16 |
|
17 |
|
18 |
if __name__ == '__main__':
|