ium_444498/init.py
2022-03-20 18:12:59 +01:00

10 lines
382 B
Python

import subprocess
from os.path import exists
file_exists = exists('./df_atp.csv')
if not file_exists:
subprocess.run(["pip", "install", "--user", "kaggle"])
subprocess.run(["pip", "install", "--user","pandas"])
subprocess.run(["kaggle", "datasets", "download", "-d", "hakeem/atp-and-wta-tennis-data"])
subprocess.run(["unzip", "-o", "atp-and-wta-tennis-data.zip"])