Fix get data

This commit is contained in:
Dawid 2021-04-08 22:59:17 +02:00
parent 25280232db
commit ff334e1a95
2 changed files with 2 additions and 3 deletions

View File

@ -9,6 +9,5 @@ RUN pip3 install -r ./requirements.txt
WORKDIR /app
COPY ./stats.py ./
COPY /kaggle.json /root/.kaggle/
CMD python3 stats.py

View File

@ -3,8 +3,8 @@ import numpy as np
import pandas as pd
from sklearn import preprocessing
with zipfile.ZipFile('covid-world-vaccination-progress.zip', 'r') as zip_ref:
zip_ref.extractall(".")
url = 'https://git.wmi.amu.edu.pl/s434804/ium_434804/raw/branch/master/country_vaccinations.csv'
wget.download(url, out='country_vaccinations.csv', bar=None)
df = pd.read_csv('country_vaccinations.csv')
# podział danych na train/validate/test (6:2:2) za pomocą biblioteki numpy i pandas