From 67261c73096423ecc79380935620f06f53e5169a Mon Sep 17 00:00:00 2001 From: s487179 Date: Fri, 14 Apr 2023 18:39:47 +0200 Subject: [PATCH] Add column names to the begining of shuffled dataset --- datasetScript.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datasetScript.sh b/datasetScript.sh index 2076668..3a2d7b9 100644 --- a/datasetScript.sh +++ b/datasetScript.sh @@ -4,5 +4,5 @@ kaggle datasets download -d rishikeshkonapure/home-loan-approval unzip -o home-loan-approval.zip cat loan_sanction_test.csv loan_sanction_train.csv > loan_sanction.csv head -n 5 loan_sanction.csv -{ head -n 1 loan_sanction.csv && tail -n +2 loan_sanction.csv | shuf; } | tail -n +2 | head -n $(($CUTOFF+1)) > loan_sanction_shuffled.csv +{ head -n 1 loan_sanction.csv && tail -n +2 loan_sanction.csv | shuf; } | tail -n +2 | head -n $(($CUTOFF+1)) | cat <(head -n 1 loan_sanction.csv) - > loan_sanction_shuffled.csv head -n 5 loan_sanction_shuffled.csv \ No newline at end of file