gagan3012 commited on
Commit
51d1d68
·
1 Parent(s): 6a640f3

Update process_data.py

Browse files
Files changed (1) hide show
  1. 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