added cutoff parameter + displaying only 5 first lines

This commit is contained in:
s495716 2024-03-20 17:02:31 +01:00
parent 4a495b1722
commit 8124103847
2 changed files with 16 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -7,6 +7,12 @@ pipeline {
name: 'KAGGLE_USERNAME',
trim: false
)
string(
defaultValue: '6',
description: 'Take only first {CUTOFF} values from dataset',
name: 'CUTOFF',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',

View File

@ -1,5 +1,12 @@
#!/bin/bash
figlet "DOWNLOAD DATA"
kaggle datasets download iabhishekofficial/mobile-price-classification --unzip --force
cat test.csv
sed 's/\([^,]*\),\(.*\)/\2/' test.csv
cat test.csv
figlet "TESTSET BEFORE ID COLUMN CUT"
head -n 5 test.csv
cut -d',' -f2- test.csv > test_without_id_column.csv
figlet "TESTSET AFTER ID COLUMN CUT"
head -n 5 test_without_id_column.csv