added cutoff parameter + displaying only 5 first lines
This commit is contained in:
parent
4a495b1722
commit
8124103847
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -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',
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user