From 028cea019dbc94fda83e54a934537f525b536eff Mon Sep 17 00:00:00 2001 From: Maciej Czajka Date: Mon, 21 Mar 2022 12:10:02 +0100 Subject: [PATCH] fix download dataset --- Zajęcia 2/main.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Zajęcia 2/main.py b/Zajęcia 2/main.py index bd72457..cdc3a21 100644 --- a/Zajęcia 2/main.py +++ b/Zajęcia 2/main.py @@ -148,13 +148,8 @@ def dataset_information(games): # pobranie dataset z kaggle -os.environ['KAGGLE_USERNAME'] = "maciejczajka" -os.environ['KAGGLE_KEY'] = "d8f044ad2b96d32372e22f9054c02bb1" - -api = KaggleApi() -api.authenticate() - -api.dataset_download_files('deepcontractor/top-video-games-19952021-metacritic', path='.', unzip=True) +os.system("kaggle datasets download -d deepcontractor/top-video-games-19952021-metacritic") +os.system("unzip top-video-games-19952021-metacritic.zip") # wczytanie danych games=pd.read_csv('all_games.csv')