filipeclduarte commited on
Commit
0810ff3
·
1 Parent(s): 9da9694

Create utils.py

Browse files
Files changed (1) hide show
  1. utils.py +15 -0
utils.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ def calc_seasonality(freq):
3
+ match freq:
4
+ case 'Y':
5
+ return 10
6
+ case 'Q':
7
+ return 4
8
+ case 'M':
9
+ return 12
10
+ case 'W':
11
+ return 4
12
+ case 'D':
13
+ return 7
14
+ case _:
15
+ return "You didn't choose the correct frequency. Use: Y, Q, M, W and D"