From 9d941d0f077137deb3a0418d5ab9ef826b410fb1 Mon Sep 17 00:00:00 2001 From: Kornelia Girejko Date: Sun, 27 Mar 2022 20:56:58 +0200 Subject: [PATCH] Skrypt --- skrypt.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 skrypt.sh diff --git a/skrypt.sh b/skrypt.sh new file mode 100644 index 0000000..611835d --- /dev/null +++ b/skrypt.sh @@ -0,0 +1,18 @@ +kaggle datasets download -d shree1992/housedata +unzip -o housedata.zip + +!wc -l data.csv +data = pd.read_csv('data.csv') + +!head -n -1 data.csv | shuf > data.csv.shuf + +!head -n 460 data.csv.shuf > data.csv.test +!head -n 920 data.csv.shuf | tail -n 460 > data.csv.dev +!tail -n +920 data.csv.shuf > data.csv.train + +!rm data.csv.shuf +!wc -l data.csv* + +data_test = pd.read_csv('data.csv.test') +data_dev = pd.read_csv('data.csv.dev') +data_train = pd.read_csv('data.csv.train')