diff --git a/Jenkinsfile b/Jenkinsfile index 1d0c860..0c0ef6f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,7 +37,7 @@ pipeline { sh 'chmod u+x download.sh' withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) { sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' - sh './download.sh' + //sh './download.sh' sh "python ium-data.py" } archiveArtifacts artifacts: 'd_test.csv, d_dev.csv, d_train.csv' diff --git a/ium-data.py b/ium-data.py index cef71a3..f9d5806 100755 --- a/ium-data.py +++ b/ium-data.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -#from kaggle.api.kaggle_api_extended import KaggleApi +from kaggle.api.kaggle_api_extended import KaggleApi import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split @@ -28,9 +28,9 @@ def column_stat(analyzed_set, column_name): # Pobieranie danych -#api = KaggleApi() -#api.authenticate() -#api.dataset_download_files('arushchillar/disneyland-reviews', unzip=True) +api = KaggleApi() +api.authenticate() +api.dataset_download_files('arushchillar/disneyland-reviews', unzip=True) disney = pd.read_csv('DisneylandReviews.csv', encoding='latin-1') # Nie zauważyłem w pliku żadnych artefaktów, które trzeba wyczyścić