Spaces:
Runtime error
Runtime error
Commit
·
0810ff3
1
Parent(s):
9da9694
Create utils.py
Browse files
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"
|