This commit is contained in:
Mikołaj Pokrywka 2022-04-03 14:01:27 +02:00
parent 587394980e
commit 6bca27c999
2 changed files with 4 additions and 1 deletions

1
Jenkinsfile vendored
View File

@ -34,7 +34,6 @@ pipeline {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}", "KAGGLE_KEY=${params.KAGGLE_KEY}",
"CUTOFF=${params.CUTOFF}"]) { "CUTOFF=${params.CUTOFF}"]) {
sh "./process_data.sh"
sh 'python3 ./download_data_and_process.py' sh 'python3 ./download_data_and_process.py'
archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv, column_titles.csv" archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv, column_titles.csv"
} }

View File

@ -1,6 +1,10 @@
import subprocess import subprocess
import pandas as pd import pandas as pd
import numpy as np import numpy as np
import kaggle
kaggle.api.authenticate()
kaggle.api.dataset_download_files('shivamb/real-or-fake-fake-jobposting-prediction', path='fake_job_postings.csv', unzip=True)
data=pd.read_csv('fake_job_postings.csv') data=pd.read_csv('fake_job_postings.csv')
data = data.replace(np.nan, '', regex=True) data = data.replace(np.nan, '', regex=True)