-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnakefile
More file actions
17 lines (16 loc) · 693 Bytes
/
Snakefile
File metadata and controls
17 lines (16 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DATA_FILES = ['item_categories', 'items', 'sales_train', 'sample_submission', 'shops', 'test']
rule data:
input:
output:
expand('data/raw/{filename}.csv', filename=DATA_FILES), 'data/external/num_residents.csv'
shell:
"""
mkdir -p data/external
mkdir -p data/interim
mkdir -p data/processed
mkdir -p data/raw
kaggle competitions download -c competitive-data-science-predict-future-sales -p data/raw
unzip data/raw/* -d data/raw
rm data/raw/competitive-data-science-predict-future-sales.zip
kaggle datasets download dmitrybunin/predict-future-sales-num-residents -p data/external --unzip
"""