Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
a5dacce
1
Parent(s):
985bc59
Update process_data.py
Browse files- src/data/process_data.py +0 -1
src/data/process_data.py
CHANGED
@@ -8,7 +8,6 @@ def process_data(split="train"):
|
|
8 |
with open("params.yml") as f:
|
9 |
params = yaml.safe_load(f)
|
10 |
|
11 |
-
df.columns = ['Unnamed: 0', 'input_text', 'output_text']
|
12 |
df = df.sample(frac=params['split'], replace=True, random_state=1)
|
13 |
if os.path.exists("data/raw/{}.csv".format(split)):
|
14 |
os.remove("data/raw/{}.csv".format(split))
|
|
|
8 |
with open("params.yml") as f:
|
9 |
params = yaml.safe_load(f)
|
10 |
|
|
|
11 |
df = df.sample(frac=params['split'], replace=True, random_state=1)
|
12 |
if os.path.exists("data/raw/{}.csv".format(split)):
|
13 |
os.remove("data/raw/{}.csv".format(split))
|