Spaces:
Runtime error
Runtime error
Update process_data.py
Browse files- src/data/process_data.py +1 -1
src/data/process_data.py
CHANGED
@@ -9,7 +9,7 @@ def process_data(split="train"):
|
|
9 |
|
10 |
df = pd.read_csv("data/raw/{}.csv".format(split))
|
11 |
df.columns = ["Unnamed: 0", "input_text", "output_text"]
|
12 |
-
df = df.sample(frac=params["split"], replace=True, random_state=1)
|
13 |
df.to_csv("data/processed/{}.csv".format(split))
|
14 |
|
15 |
|
|
|
9 |
|
10 |
df = pd.read_csv("data/raw/{}.csv".format(split))
|
11 |
df.columns = ["Unnamed: 0", "input_text", "output_text"]
|
12 |
+
df = df.sample(frac=float(params["split"]), replace=True, random_state=1)
|
13 |
df.to_csv("data/processed/{}.csv".format(split))
|
14 |
|
15 |
|