fix download dataset

This commit is contained in:
Maciej Czajka 2022-03-21 12:10:02 +01:00
parent 11590c652d
commit 028cea019d

View File

@ -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')