1 Star 0 Fork 0

al0014 / covid19-sir

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
input.sh 765 Bytes
一键复制 编辑 原始数据 按行查看 历史
Lisphilar 提交于 2020-05-11 23:12 . update: kaggle API with pipenv
#!/bin/bash
# https://www.kaggle.com/docs/api
# Using Kaggle API, download the datasets
# Initialize the input directory
mkdir -p input
rm input/*.csv 2>/dev/null
# Download datasets
# The number of cases
pipenv run kaggle datasets download -d sudalairajkumar/novel-corona-virus-2019-dataset
# The number of cases in Japan
pipenv run kaggle datasets download -d lisphilar/covid19-dataset-in-japan
# Total population
pipenv run kaggle datasets download -d dgrechka/covid19-global-forecasting-locations-population
# Move files to input direcotory
mv *.zip input/
# Unzip the files
unzip 'input/*.zip' -d input
rm input/*.zip
# Remove un-used CSV files
rm input/*time_series_covid_19_*.csv
rm input/COVID19_line_list_data.csv
rm input/COVID19_open_line_list.csv
1
https://gitee.com/al0014/covid19-sir.git
git@gitee.com:al0014/covid19-sir.git
al0014
covid19-sir
covid19-sir
master

搜索帮助