Queensly commited on
Commit
ff9f3d1
1 Parent(s): f872bf9

Changed file location

Browse files
src/__init__.py DELETED
File without changes
src/assets/images/sales.png DELETED
Binary file (47.8 kB)
 
src/assets/ml_components/ml_components_1.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1d21f5cc50feb621a4a13dac233bacdcd7a009dd7011d334f3e3816e4ea4544e
3
- size 2435
 
 
 
 
src/assets/ml_components/ml_components_2.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a926061fd1ed729e0394e94a31d7ad1cec200bb0a5424d37e08771f8c09b3884
3
- size 193011365
 
 
 
 
src/utils.py DELETED
@@ -1,29 +0,0 @@
1
- import numpy as np
2
- import pickle
3
-
4
-
5
-
6
-
7
- def payday(row):
8
- if row.DayOfMonth == 15 or row.Is_month_end == 1:
9
- return 1
10
- else:
11
- return 0
12
-
13
-
14
- def date_extracts(data):
15
- data['Year'] = data.index.year
16
- data['Month'] = data.index.month
17
- data['DayOfMonth'] = data.index.day
18
- data['DaysInMonth'] = data.index.days_in_month
19
- data['DayOfYear'] = data.index.day_of_year
20
- data['DayOfWeek'] = data.index.dayofweek
21
- data['Week'] = data.index.isocalendar().week
22
- data['Is_weekend'] = np.where(data['DayOfWeek'] > 4, 1, 0)
23
- data['Is_month_start'] = data.index.is_month_start.astype(int)
24
- data['Is_month_end'] = data.index.is_month_end.astype(int)
25
- data['Quarter'] = data.index.quarter
26
- data['Is_quarter_start'] = data.index.is_quarter_start.astype(int)
27
- data['Is_quarter_end'] = data.index.is_quarter_end.astype(int)
28
- data['Is_year_start'] = data.index.is_year_start.astype(int)
29
- data['Is_year_end'] = data.index.is_year_end.astype(int)