fix download dataset
This commit is contained in:
parent
11590c652d
commit
028cea019d
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user